diff --git a/lib/Form/FormsRepository.php b/lib/Form/FormsRepository.php index 905311b5a7..f01bf9ae1d 100644 --- a/lib/Form/FormsRepository.php +++ b/lib/Form/FormsRepository.php @@ -27,22 +27,6 @@ class FormsRepository extends Repository { ->getResult(); } - /** - * @return FormEntity[] - */ - public function findAllActive(): array { - return $this->entityManager - ->createQueryBuilder() - ->select('f') - ->from(FormEntity::class, 'f') - ->where('f.status = (:enabled)') - ->andWhere('f.deletedAt IS NULL') - ->setParameter('enabled', FormEntity::STATUS_ENABLED) - ->orderBy('f.name', 'asc') - ->getQuery() - ->getResult(); - } - public function getNamesOfFormsForSegments(): array { $allNonDeletedForms = $this->findAllNotDeleted(); diff --git a/lib/Form/Widget.php b/lib/Form/Widget.php index aa2d64f3b5..d3692a9ed4 100644 --- a/lib/Form/Widget.php +++ b/lib/Form/Widget.php @@ -137,6 +137,8 @@ class Widget extends \WP_Widget {