Adapt to Permission::reset, DataObject::duplicate API changes.

This commit is contained in:
Garion Herman 2017-06-04 14:33:04 +12:00
parent 21a8c56217
commit 49fbfcb459

View File

@ -193,7 +193,7 @@ class Subsite extends DataObject
} }
} }
Permission::flush_permission_cache(); Permission::reset();
} }
/** /**
@ -918,9 +918,10 @@ JS;
/** /**
* Duplicate this subsite * Duplicate this subsite
* @param bool $doWrite * @param bool $doWrite
* @param string $manyMany
* @return DataObject * @return DataObject
*/ */
public function duplicate($doWrite = true) public function duplicate($doWrite = true, $manyMany = 'many_many')
{ {
$duplicate = parent::duplicate($doWrite); $duplicate = parent::duplicate($doWrite);