fix: If no distribution level set, don't try to check if it's set to sharing group on the attribute level

- Attribute->editAttribute()
pull/2668/head
iglocska 2017-11-22 10:55:24 +01:00
parent 7ed2e5b9c9
commit a70b786e25
1 changed files with 1 additions and 1 deletions

View File

@ -2975,7 +2975,7 @@ class Attribute extends AppModel {
$this->create();
}
$attribute['event_id'] = $eventId;
if ($attribute['distribution'] == 4) {
if (isset($attribute['distribution']) && $attribute['distribution'] == 4) {
$attribute['sharing_group_id'] = $this->SharingGroup->captureSG($attribute['SharingGroup'], $user);
}
$fieldList = array(