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:
Damian Mooyman 2017-05-29 15:05:24 +12:00 committed by GitHub
commit a017422817

View File

@ -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]);
} }
} }