From fa52f40b847f6de8f8ccf21a0dde49bcd98ff4b0 Mon Sep 17 00:00:00 2001 From: iglocska Date: Mon, 15 Apr 2019 10:48:00 +0200 Subject: [PATCH] fix: [export] Fixed broken bro export, fixes #4050 --- app/Model/Job.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Model/Job.php b/app/Model/Job.php index b5d6d881e..71e944bd1 100644 --- a/app/Model/Job.php +++ b/app/Model/Job.php @@ -42,7 +42,7 @@ class Job extends AppModel $this->save($data); $id = $this->id; $this->Event = ClassRegistry::init('Event'); - if (in_array($type, array_keys($this->Event->export_types))) { + if (in_array($type, array_keys($this->Event->export_types)) && $type !== 'bro') { $process_id = CakeResque::enqueue( 'cache', $shell . 'Shell', @@ -50,13 +50,11 @@ class Job extends AppModel true ); } elseif ($type === 'bro') { - $extra = $type; $type = 'bro'; - $extra2 = isset($user['nids_sid']) ? $user['nids_sid'] : 0; $process_id = CakeResque::enqueue( 'cache', $shell . 'Shell', - array('cachebro' . $type, $user['id'], $id, $extra, $extra2), + array('cachebro', $user['id'], $id), true ); } else {