mirror of https://github.com/MISP/MISP
Merge branch 'hotfix-2.2.30'
commit
a6c2c392d2
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue