Make sure the order stays stable
[MAILPOET-2742]
This commit is contained in:
@ -103,7 +103,7 @@ class DisplayFormInWPContent {
|
|||||||
* @return array<string, FormEntity>
|
* @return array<string, FormEntity>
|
||||||
*/
|
*/
|
||||||
private function getForms(): array {
|
private function getForms(): array {
|
||||||
$forms = $this->formsRepository->findBy(['deletedAt' => null]);
|
$forms = $this->formsRepository->findBy(['deletedAt' => null], ['updatedAt' => 'ASC']);
|
||||||
$forms = $this->filterOneFormInEachDisplayType($forms);
|
$forms = $this->filterOneFormInEachDisplayType($forms);
|
||||||
return $forms;
|
return $forms;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user