mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Use plural name for ModelAdmin tab name
This commit is contained in:
parent
24a768ae14
commit
b4368196d1
@ -300,7 +300,7 @@ abstract class ModelAdmin extends LeftAndMain {
|
|||||||
// Normalize models to have their model class in array key
|
// Normalize models to have their model class in array key
|
||||||
foreach($models as $k => $v) {
|
foreach($models as $k => $v) {
|
||||||
if(is_numeric($k)) {
|
if(is_numeric($k)) {
|
||||||
$models[$v] = array('title' => singleton($v)->i18n_singular_name());
|
$models[$v] = array('title' => singleton($v)->i18n_plural_name());
|
||||||
unset($models[$k]);
|
unset($models[$k]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user