瀏覽代碼

Merge pull request #432 from merk/patch-1

Added check for children breadcrumbs
Thomas 13 年之前
父節點
當前提交
df2a846b59
共有 1 個文件被更改,包括 1 次插入1 次删除
  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(