BUG Fixing saving of Subsite records from SubsiteAdmin

LeftAndMain assumes tree_class exists, and tries to use it,
but causes a non-object error because of querying with a NULL
class name.
This commit is contained in:
Sean Harvey 2013-02-04 14:49:51 +13:00
parent 413cc0040e
commit bf1390f0f8

View File

@ -13,6 +13,8 @@ class SubsiteAdmin extends ModelAdmin {
public $showImportForm=false;
static $tree_class = 'Subsite';
public function getEditForm($id = null, $fields = null) {
$form = parent::getEditForm($id, $fields);