BUGFIX: Set the SubsiteID on new groups correctly. (from r89103)

This commit is contained in:
Tom Rix 2010-03-01 21:33:52 +00:00
parent caddec36bc
commit 90b2068bcd

View File

@ -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() {