diff --git a/src/Kunstmaan/AdminBundle/AdminList/ExceptionAdminListConfigurator.php b/src/Kunstmaan/AdminBundle/AdminList/ExceptionAdminListConfigurator.php index f8349f658c..20eb4b6f69 100644 --- a/src/Kunstmaan/AdminBundle/AdminList/ExceptionAdminListConfigurator.php +++ b/src/Kunstmaan/AdminBundle/AdminList/ExceptionAdminListConfigurator.php @@ -121,4 +121,18 @@ public function getEntityClass(): string { return Exception::class; } + + /** + * @param string|null $suffix + * + * @return string + */ + public function getPathByConvention($suffix = null) + { + if (null === $suffix || $suffix === '') { + return 'kunstmaanadminbundle_admin_exception'; + } + + return sprintf('kunstmaanadminbundle_admin_exception_%s', $suffix); + } } diff --git a/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php b/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php index 9d148cdcdf..9444fed8c6 100644 --- a/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php +++ b/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php @@ -644,7 +644,7 @@ public function reorderAction(Request $request): Response $this->init($request); $nodes = []; $nodeIds = $request->request->all('nodes'); - $changeParents = $request->request->get('parent'); + $changeParents = $request->request->all('parent'); foreach ($nodeIds as $id) { /* @var Node $node */ diff --git a/src/Kunstmaan/TranslatorBundle/Service/Translator/Loader.php b/src/Kunstmaan/TranslatorBundle/Service/Translator/Loader.php index f502cf5a60..2a27675950 100644 --- a/src/Kunstmaan/TranslatorBundle/Service/Translator/Loader.php +++ b/src/Kunstmaan/TranslatorBundle/Service/Translator/Loader.php @@ -24,7 +24,11 @@ public function load($resource, $locale, $domain = 'messages') $catalogue = new MessageCatalogue($locale); $translations = $this->translationRepository->findBy(['locale' => $locale]); foreach ($translations as $translation) { - $catalogue->set($translation->getKeyword(), $translation->getText(), $translation->getDomain()); + $catalogue->set( + (string) $translation->getKeyword(), + (string) $translation->getText(), + (string) $translation->getDomain() + ); } $this->catalogues[$locale] = $catalogue; } else {