MINOR Fixed Hierarchy extension detection in AssetAdmin->doAdd()

This commit is contained in:
Ingo Schommer 2011-04-19 21:16:03 +12:00
parent b9fc626fc9
commit baa0c8afd4

View File

@ -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'])
) { ) {