Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ENHANCEMENT Allowing ModelAdmin to be rendered with different *_right…

….ss templates based on the class name

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92761 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 722fc1defcac65aa7e0503bddcd852c5d57ffe9a 1 parent c65800a
@chillu chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  code/ModelAdmin.php
View
2  code/ModelAdmin.php
@@ -880,7 +880,7 @@ function edit($request) {
return $this->parentController->parentController->customise(array(
'Right' => $this->parentController->parentController->customise(array(
'EditForm' => $this->EditForm()
- ))->renderWith('ModelAdmin_right')
+ ))->renderWith(array("{$this->class}_right",'LeftAndMain_right'))
))->renderWith(array('ModelAdmin','LeftAndMain'));
return ;
}
Please sign in to comment.
Something went wrong with that request. Please try again.