Pārlūkot izejas kodu

Merge pull request #1436 from fluxuator/master

Fix breadcrumbs for custom routes when subject is empty
Thomas 12 gadi atpakaļ
vecāks
revīzija
eba377e3cc
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      Admin/Admin.php

+ 1 - 2
Admin/Admin.php

@@ -2014,8 +2014,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
             $menu = $menu->addChild($this->toString($this->getSubject()));
         } elseif ($action != 'list') {
             $menu = $menu->addChild(
-//                $this->trans($this->getLabelTranslatorStrategy()->getLabel(sprintf('%s_%s', $this->getClassnameLabel(), $action), 'breadcrumb', 'link'))
-                  $this->toString($this->getSubject())
+                $this->trans($this->getLabelTranslatorStrategy()->getLabel(sprintf('%s_%s', $this->getClassnameLabel(), $action), 'breadcrumb', 'link'))
             );
         } else {
             $menu->getBreadcrumbsArray();