Skip to content

Commit c4950dd

Browse files
committed
Merge pull request #303 from symfony-cmf/fix-admin-typo
fix bug in sonata admin
2 parents 0c8e317 + beeba33 commit c4950dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Admin/RouteAdmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ protected function configureFieldsForDefaults($dynamicDefaults)
168168
$defaults['_format'] = array('_format', 'text', array('required' => true));
169169
}
170170
if ($route && $route->getOption('add_locale_pattern')) {
171-
$defaults['_locale'] = array('_format', 'text', array('required' => false));
171+
$defaults['_locale'] = array('_locale', 'text', array('required' => false));
172172
}
173173

174174
return $defaults;

0 commit comments

Comments
 (0)