Skip to content
Snippets Groups Projects
Commit 158cb9fb authored by kevin.dezaphi's avatar kevin.dezaphi
Browse files

set status to a defined status when rejected to the previous visor as the first one

parent 080a60f6
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,11 @@ function manage_empty_error($arr_id, $history, $id_action, $label_action, $statu ...@@ -146,7 +146,11 @@ function manage_empty_error($arr_id, $history, $id_action, $label_action, $statu
$stmt = $db->query($query,[$res_id, 'VISA_CIRCUIT']); $stmt = $db->query($query,[$res_id, 'VISA_CIRCUIT']);
if ($stmt->rowCount() < 1) { if ($stmt->rowCount() < 1) {
$newStatus = 'AREV'; if ($status == '_NOSTATUS_') {
$newStatus = 'AREV';
} else {
$newStatus = $status;
}
} else { } else {
$listInstance = $stmt->fetchObject(); $listInstance = $stmt->fetchObject();
$db->query('UPDATE listinstance SET process_date = NULL WHERE res_id = ? AND difflist_type = ? AND listinstance_id = ?', $db->query('UPDATE listinstance SET process_date = NULL WHERE res_id = ? AND difflist_type = ? AND listinstance_id = ?',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment