FIX Use plural name for ModelAdmin tab name

This commit is contained in:
Robbie Averill 2017-05-29 14:02:58 +12:00
parent 24a768ae14
commit b4368196d1

View File

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