mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
MINOR Fixed Hierarchy extension detection in AssetAdmin->doAdd()
This commit is contained in:
parent
b9fc626fc9
commit
baa0c8afd4
@ -311,7 +311,7 @@ JS
|
|||||||
|
|
||||||
// check addchildren permissions
|
// check addchildren permissions
|
||||||
if(
|
if(
|
||||||
singleton($class)->hasDatabaseField('Hierarchy')
|
singleton($class)->hasExtension('Hierarchy')
|
||||||
&& isset($data['ParentID'])
|
&& isset($data['ParentID'])
|
||||||
&& is_numeric($data['ParentID'])
|
&& is_numeric($data['ParentID'])
|
||||||
) {
|
) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user