public function execute(HTTPRequestCustom $request) { $id = $request->get_int('id', 0); $code = -1; if (!empty($id)) { //Delete filter BugtrackerService::delete_filter("WHERE id=:id", array('id' => $id)); $code = $id; } return new JSONResponse(array('code' => $code)); }