Procházet zdrojové kódy

Merge pull request #432 from merk/patch-1

Added check for children breadcrumbs
Thomas před 13 roky
rodič
revize
df2a846b59
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Admin/Admin.php

+ 1 - 1
Admin/Admin.php

@@ -1809,7 +1809,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
                 );
             }
 
-            if ($this->hasSubject()) {
+            if ($action != 'create' && $this->hasSubject()) {
                 $breadcrumbs = $menu->getBreadcrumbsArray( (string) $this->getSubject());
             } else {
                 $breadcrumbs = $menu->getBreadcrumbsArray(