Exclude deleted form from display below post/page check
[MAILPOET-2710]
This commit is contained in:
committed by
Jack Kitterhing
parent
c396d74d90
commit
ede14fc661
@ -84,7 +84,7 @@ class DisplayFormInWPContent {
|
||||
* @return FormEntity[]
|
||||
*/
|
||||
private function getForms(): array {
|
||||
$forms = $this->formsRepository->findAll();
|
||||
$forms = $this->formsRepository->findBy(['deletedAt' => null]);
|
||||
return array_filter($forms, function($form) {
|
||||
return $this->shouldDisplayFormBellowContent($form);
|
||||
});
|
||||
|
Reference in New Issue
Block a user