|
|
@@ -26,7 +26,10 @@ if($user->level >= User::LEVEL_ADMIN) {
|
|
|
$pass = http::value("pass", "int");
|
|
|
|
|
|
$nvp = [];
|
|
|
- if($status) $nvp["status"] = $status;
|
|
|
+ if(strlen($status) > 0) $nvp["status"] = $status;
|
|
|
+ else {
|
|
|
+ $nvp["status"] = (new Constraint("NOT_EQUALS"))->setValues(Test::STATUS_CANCELLED);
|
|
|
+ }
|
|
|
if($project_id) $nvp["project_id"] = $project_id;
|
|
|
else if($customer_id) {
|
|
|
$projects = Project::query(["customer_id" => $customer_id]);
|