diff --git a/inc/deployaction.class.php b/inc/deployaction.class.php index 09b5603fe..ec7f3855b 100644 --- a/inc/deployaction.class.php +++ b/inc/deployaction.class.php @@ -577,7 +577,7 @@ function add_item($params) { $new_entry[$params['actionstype']] = $params; //get current order json - $data = json_decode($this->getJson($params['id']), true); + $data = json_decode($this->getJson($id), true); //add new entry $data['jobs'][$this->json_name][] = $new_entry;