Only capture objects when adding an event via the API

pull/762/head
Iglocska 2015-12-10 13:30:03 +01:00
parent 0830d23343
commit 45b3eb25ec
1 changed files with 2 additions and 2 deletions

View File

@ -1648,10 +1648,10 @@ class Event extends AppModel {
if ($fromXml) $created_id = $existingEvent['Event']['id'];
return $existingEvent['Event']['id'];
} else {
$data = $this->__captureObjects($data, $user);
if ($fromXml) $data = $this->__captureObjects($data, $user);
}
} else {
$data = $this->__captureObjects($data, $user);
if ($fromXml) $data = $this->__captureObjects($data, $user);
}
// FIXME chri: validatebut the necessity for all these fields...impact on security !
$fieldList = array(