mirror of https://github.com/MISP/MISP
parent
d4c5460d9e
commit
3b07348849
|
@ -259,6 +259,10 @@ class AttributesController extends AppController {
|
||||||
} else {
|
} else {
|
||||||
// set the event_id in the form
|
// set the event_id in the form
|
||||||
$this->request->data['Attribute']['event_id'] = $eventId;
|
$this->request->data['Attribute']['event_id'] = $eventId;
|
||||||
|
// set distribution in the form
|
||||||
|
$this->loadModel('Event');
|
||||||
|
$events = $this->Event->findById($eventId);
|
||||||
|
$this->request->data['Attribute']['distribution'] = $events['Event']['distribution'];
|
||||||
}
|
}
|
||||||
|
|
||||||
// combobox for types
|
// combobox for types
|
||||||
|
|
Loading…
Reference in New Issue