Permalink
Browse files

MINOR Allowing usage of custom *_EditForm templates in base class wit…

…h LeftAndMain->getEditForm() (was already implemented in subclasses)
  • Loading branch information...
1 parent 7e01c40 commit 3aafb63821af991de8ffda90f6a4cfa948de2edb @chillu chillu committed Oct 29, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 admin/code/LeftAndMain.php
@@ -830,6 +830,7 @@ public function getEditForm($id = null, $fields = null) {
$form = new Form($this, "EditForm", $fields, $actions);
$form->addExtraClass('cms-edit-form');
$form->loadDataFrom($record);
+ $form->setTemplate($this->getTemplatesWithSuffix('_EditForm'));
// Add a default or custom validator.
// @todo Currently the default Validator.js implementation

0 comments on commit 3aafb63

Please sign in to comment.