mirror of https://github.com/MISP/MISP
Comments now correctly save on attachments
parent
15c72a784d
commit
685ba2a0b9
|
@ -356,6 +356,7 @@ class AttributesController extends AppController {
|
||||||
'category' => $this->request->data['Attribute']['category'],
|
'category' => $this->request->data['Attribute']['category'],
|
||||||
'type' => $typeName,
|
'type' => $typeName,
|
||||||
'event_id' => $this->request->data['Attribute']['event_id'],
|
'event_id' => $this->request->data['Attribute']['event_id'],
|
||||||
|
'comment' => $this->request->data['Attribute']['comment'],
|
||||||
'to_ids' => 1,
|
'to_ids' => 1,
|
||||||
'distribution' => $this->request->data['Attribute']['distribution'],
|
'distribution' => $this->request->data['Attribute']['distribution'],
|
||||||
'sharing_group_id' => $this->request->data['Attribute']['sharing_group_id'],
|
'sharing_group_id' => $this->request->data['Attribute']['sharing_group_id'],
|
||||||
|
@ -375,6 +376,7 @@ class AttributesController extends AppController {
|
||||||
'type' => 'attachment',
|
'type' => 'attachment',
|
||||||
'event_id' => $this->request->data['Attribute']['event_id'],
|
'event_id' => $this->request->data['Attribute']['event_id'],
|
||||||
'data' => base64_encode($tmpfile->read()),
|
'data' => base64_encode($tmpfile->read()),
|
||||||
|
'comment' => $this->request->data['Attribute']['comment'],
|
||||||
'to_ids' => 0,
|
'to_ids' => 0,
|
||||||
'distribution' => $this->request->data['Attribute']['distribution'],
|
'distribution' => $this->request->data['Attribute']['distribution'],
|
||||||
'sharing_group_id' => $this->request->data['Attribute']['sharing_group_id'],
|
'sharing_group_id' => $this->request->data['Attribute']['sharing_group_id'],
|
||||||
|
|
Loading…
Reference in New Issue