Explorar o código

Add base route code for routes with dots

Joris van de Sande %!s(int64=12) %!d(string=hai) anos
pai
achega
0b3e5401b8
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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);
     }