Browse Source

Add base route code for routes with dots

Joris van de Sande 12 years ago
parent
commit
0b3e5401b8
1 changed files with 6 additions and 0 deletions
  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);
     }