Set attribute distribution to Inherit if it is not set.

pull/1050/head
Iglocska 2016-03-07 02:40:36 +01:00
parent 7a20704f36
commit 113d9cd82d
1 changed files with 1 additions and 0 deletions

View File

@ -523,6 +523,7 @@ class Attribute extends AppModel {
// always return true, otherwise the object cannot be saved
if (!isset($this->data['Attribute']['distribution']) || $this->data['Attribute']['distribution'] != 4) $this->data['Attribute']['sharing_group_id'] = 0;
if (!isset($this->data['Attribute']['distribution'])) $this->data['Attribute']['distribution'] = 5;
return true;
}