From beeba33935192f3df56c0c1ddbbaa6c2a097b98b Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Tue, 23 Jun 2015 17:03:16 +0200 Subject: [PATCH] when locale pattern is activated, add a field for the locale, not for the format --- Admin/RouteAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Admin/RouteAdmin.php b/Admin/RouteAdmin.php index 4c353f12..c9f0f3f7 100644 --- a/Admin/RouteAdmin.php +++ b/Admin/RouteAdmin.php @@ -168,7 +168,7 @@ protected function configureFieldsForDefaults($dynamicDefaults) $defaults['_format'] = array('_format', 'text', array('required' => true)); } if ($route && $route->getOption('add_locale_pattern')) { - $defaults['_locale'] = array('_format', 'text', array('required' => false)); + $defaults['_locale'] = array('_locale', 'text', array('required' => false)); } return $defaults;