mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Adapt to Permission::reset, DataObject::duplicate API changes.
This commit is contained in:
parent
21a8c56217
commit
49fbfcb459
@ -193,7 +193,7 @@ class Subsite extends DataObject
|
||||
}
|
||||
}
|
||||
|
||||
Permission::flush_permission_cache();
|
||||
Permission::reset();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -918,9 +918,10 @@ JS;
|
||||
/**
|
||||
* Duplicate this subsite
|
||||
* @param bool $doWrite
|
||||
* @param string $manyMany
|
||||
* @return DataObject
|
||||
*/
|
||||
public function duplicate($doWrite = true)
|
||||
public function duplicate($doWrite = true, $manyMany = 'many_many')
|
||||
{
|
||||
$duplicate = parent::duplicate($doWrite);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user