HOR-2876 pull request note

This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-03-16 12:38:58 -04:00
parent e6ab1aa5d9
commit 82c1695531

View File

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