Pārlūkot izejas kodu

Add base route code for routes with dots

Joris van de Sande 12 gadi atpakaļ
vecāks
revīzija
0b3e5401b8
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  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);
     }