fix: Added a fallback for no active flag being set on sharing group capture

pull/1547/head
Iglocska 2016-09-19 14:29:06 +02:00
parent 29671a6ac1
commit 3142f05e69
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ class SharingGroup extends AppModel {
if (empty($this->data['SharingGroup']['created'])) {
$this->data['SharingGroup']['created'] = $date;
}
if (!isset($this->data['SharingGroup']['active'])) {
$this->data['SharingGroup']['active'] = 0;
}
$this->data['SharingGroup']['modified'] = $date;
$sameNameSG = $this->find('first', array(