diff --git a/adapter/pradapter.js b/adapter/pradapter.js index ccd0538..fb5a623 100644 --- a/adapter/pradapter.js +++ b/adapter/pradapter.js @@ -446,7 +446,7 @@ class PrAdapter extends Adapter { "%' or trim(v.justificationnumber) like '%" + keyword + "%') "; - if (status !== "-1") { + if (status !== undefined && status !== null && status !== "") { qry += "and v.status in(" + status + ") "; } if (swherenik) { @@ -485,7 +485,7 @@ class PrAdapter extends Adapter { "%' or trim(v.justificationnumber) like '%" + keyword + "%') "; - if (status !== "-1") { + if (status !== undefined && status !== null && status !== "") { qry += "and v.status in(" + status + ") "; } if (division && division.trim() !== "") {