Merge branch 'hotfix-2.2.30'

pull/274/merge
iglocska 2014-05-06 17:11:21 +02:00
commit a6c2c392d2
1 changed files with 1 additions and 1 deletions

View File

@ -769,8 +769,8 @@ class EventsController extends AppController {
else $this->request->data = $this->Event->updateXMLArray($this->request->data, false);
}
// Workaround for different structure in XML/array than what CakePHP expects
$this->request->data = $this->Event->cleanupEventArrayFromXML($this->request->data);
if (isset($this->request->data['response'])) $this->request->data = $this->request->data['response'];
$this->request->data = $this->Event->cleanupEventArrayFromXML($this->request->data);
// the event_id field is not set (normal) so make sure no validation errors are thrown
// LATER do this with $this->validator()->remove('event_id');
unset($this->Event->Attribute->validate['event_id']);