API CHANGE #4036 ajshort: Add the ability to set the keys of ModelAdmin::$managed_models to alternate titles for the tabs.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76999 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-05-16 06:03:22 +00:00
parent 405392f7f7
commit 7d00afce59

View File

@ -193,7 +193,7 @@ abstract class ModelAdmin extends LeftAndMain {
foreach($models as $title => $class) {
$forms->push(new ArrayData(array (
'Title' => (is_string($title) ? $title : singleton($modelClass)->singular_name()),
'Title' => (is_string($title) ? $title : singleton($class)->singular_name()),
'ClassName' => $class,
'Content' => $this->$class()->getModelSidebar()
)));