This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-03-16 12:25:47 -04:00
parent 70e5fe222b
commit e6ab1aa5d9

View File

@@ -109,10 +109,16 @@ class RoutingScreen extends \Derivation
} }
} }
if ($delete) { if ($delete) {
$thereIsNoTask = true;
if ($response[$index]["NEXT_TASK"]["TAS_UID"] === "-1") {
$thereIsNoTask = false;
}
if ($thereIsNoTask === true) {
unset($response[$index]); unset($response[$index]);
} }
} }
} }
}
return array_combine(range(1, count($response)), array_values($response)); return array_combine(range(1, count($response)), array_values($response));
} }