Comments now correctly save on attachments

pull/762/head
iglocska 2015-11-09 12:44:09 +01:00
parent 15c72a784d
commit 685ba2a0b9
1 changed files with 2 additions and 0 deletions

View File

@ -356,6 +356,7 @@ class AttributesController extends AppController {
'category' => $this->request->data['Attribute']['category'],
'type' => $typeName,
'event_id' => $this->request->data['Attribute']['event_id'],
'comment' => $this->request->data['Attribute']['comment'],
'to_ids' => 1,
'distribution' => $this->request->data['Attribute']['distribution'],
'sharing_group_id' => $this->request->data['Attribute']['sharing_group_id'],
@ -375,6 +376,7 @@ class AttributesController extends AppController {
'type' => 'attachment',
'event_id' => $this->request->data['Attribute']['event_id'],
'data' => base64_encode($tmpfile->read()),
'comment' => $this->request->data['Attribute']['comment'],
'to_ids' => 0,
'distribution' => $this->request->data['Attribute']['distribution'],
'sharing_group_id' => $this->request->data['Attribute']['sharing_group_id'],