fix: Added default value to proposal_to_delete

pull/2031/head
iglocska 2017-03-06 09:57:32 +01:00
parent 763105603e
commit c603607cd0
1 changed files with 2 additions and 0 deletions

View File

@ -280,6 +280,8 @@ class ShadowAttribute extends AppModel {
$date = new DateTime();
$this->data['ShadowAttribute']['timestamp'] = $date->getTimestamp();
}
if (!isset($this->data['ShadowAttribute']['proposal_to_delete'])) $this->data['ShadowAttribute']['proposal_to_delete'] = 0;
// make some last changes to the inserted value
$this->data['ShadowAttribute']['value'] = $this->Event->Attribute->modifyBeforeValidation($this->data['ShadowAttribute']['type'], $this->data['ShadowAttribute']['value']);