From 685c5c6b8cf5e453d547c2cdd1e2064649fa48fa Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Thu, 6 Sep 2018 14:35:38 +0200 Subject: [PATCH] fix: [API] Quick fix on a dict key to fetch the name of the stix file imported --- app/Controller/EventsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controller/EventsController.php b/app/Controller/EventsController.php index cc0d3df5e..ffbd82d80 100644 --- a/app/Controller/EventsController.php +++ b/app/Controller/EventsController.php @@ -1739,7 +1739,7 @@ class EventsController extends AppController throw new UnauthorizedException(__('You do not have permission to do that.')); } if ($this->request->is('post')) { - $original_file = !empty($this->data['Event']['original_file']) ? $this->data['Event']['name'] : None; + $original_file = !empty($this->data['Event']['original_file']) ? $this->data['Event']['stix']['name'] : None; if ($this->_isRest()) { $randomFileName = $this->Event->generateRandomFileName(); $tmpDir = APP . "files" . DS . "scripts" . DS . "tmp";