mirror of https://github.com/MISP/MISP
fix bug when editing attributes
parent
6da1906bf4
commit
9e2c2c5753
|
@ -315,8 +315,9 @@ class AttributesController extends AppController {
|
|||
if ($this->Attribute->save($this->request->data, true, $fieldList)) {
|
||||
$this->Session->setFlash(__('The attribute has been saved'));
|
||||
|
||||
// remove the published flag from the event
|
||||
$this->Event->id = $this->request->data['Attribute']['event_id'];
|
||||
// remove the published flag from the event
|
||||
$this->loadModel('Event');
|
||||
$this->Event->id = $event_id;
|
||||
$this->Event->saveField('published', 0);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue