mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
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:
parent
413cc0040e
commit
bf1390f0f8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user