mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX: Set the SubsiteID on new groups correctly. (from r89103)
This commit is contained in:
parent
caddec36bc
commit
90b2068bcd
@ -87,7 +87,7 @@ class GroupSubsites extends DataObjectDecorator implements PermissionProvider {
|
||||
}
|
||||
|
||||
function augmentBeforeWrite() {
|
||||
if(!is_numeric($this->owner->ID) && !$this->owner->SubsiteID) $this->owner->SubsiteID = Subsite::currentSubsiteID();
|
||||
if((!is_numeric($this->owner->ID) || !$this->owner->ID) && !$this->owner->SubsiteID) $this->owner->SubsiteID = Subsite::currentSubsiteID();
|
||||
}
|
||||
|
||||
function alternateCanEdit() {
|
||||
|
Loading…
Reference in New Issue
Block a user