Browse Source

Add base route code for routes with dots

Joris van de Sande 12 năm trước cách đây
mục cha
commit
0b3e5401b8
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      Admin/Admin.php

+ 6 - 0
Admin/Admin.php

@@ -1087,6 +1087,12 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
     {
         $this->buildRoutes();
 
+        if (! $this->isChild()) {
+            if (strpos($name, '.')) {
+                $name = $this->getCode() . '|' . $name;
+            }
+        }
+
         return $this->routes->has($name);
     }