mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6972 from creative-commoners/pulls/3.5/plural-modeladmin-name
FIX Use plural name for ModelAdmin tab name
This commit is contained in:
commit
a017422817
@ -300,7 +300,7 @@ abstract class ModelAdmin extends LeftAndMain {
|
||||
// Normalize models to have their model class in array key
|
||||
foreach($models as $k => $v) {
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user