Procházet zdrojové kódy

Add base route code for routes with dots

Joris van de Sande před 12 roky
rodič
revize
0b3e5401b8
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  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);
     }