From b557715e698b87257c8e5e8411a84c8596ce8cb1 Mon Sep 17 00:00:00 2001 From: Adam Schubert Date: Tue, 25 Jul 2017 00:35:52 +0200 Subject: [PATCH] Fix interface compability --- .../Model/Partner/Repository/PartnerCmsRepository.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Dravencms/Model/Partner/Repository/PartnerCmsRepository.php b/src/Dravencms/Model/Partner/Repository/PartnerCmsRepository.php index 5abf994..48eb654 100644 --- a/src/Dravencms/Model/Partner/Repository/PartnerCmsRepository.php +++ b/src/Dravencms/Model/Partner/Repository/PartnerCmsRepository.php @@ -61,10 +61,10 @@ public function getActionOptions($componentAction) * @param ILocale $locale * @return null|CmsActionOption */ - public function getActionOption($componentAction, array $parameters, ILocale $locale) + public function getActionOption($componentAction, array $parameters) { - $found = $this->partnerRepository->findTranslatedOneBy($this->partnerRepository, $locale, $parameters + ['isActive' => true]); - + //$found = $this->partnerRepository->findTranslatedOneBy($this->partnerRepository, $locale, $parameters + ['isActive' => true]); + $found = null; //!FIXME if ($found) { return new CmsActionOption(($found->getLead() ? $found->getLead() . ' ' : '') . $found->getName(), $parameters); @@ -72,4 +72,4 @@ public function getActionOption($componentAction, array $parameters, ILocale $lo return null; } -} \ No newline at end of file +}