Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…h LeftAndMain->getEditForm() (was already implemented in subclasses)
  • Loading branch information...
commit 3aafb63821af991de8ffda90f6a4cfa948de2edb 1 parent 7e01c40
@chillu chillu authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  admin/code/LeftAndMain.php
View
1  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
Please sign in to comment.
Something went wrong with that request. Please try again.