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

FEAT #8552 keep defines status if it is in action page

parent be161b68
No related branches found
No related tags found
No related merge requests found
...@@ -151,10 +151,14 @@ function manage_empty_error($arr_id, $history, $id_action, $label_action, $statu ...@@ -151,10 +151,14 @@ function manage_empty_error($arr_id, $history, $id_action, $label_action, $statu
$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 = ?',
[$res_id, 'VISA_CIRCUIT', $listInstance->listinstance_id]); [$res_id, 'VISA_CIRCUIT', $listInstance->listinstance_id]);
if ($listInstance->requested_signature) { if ($status == '_NOSTATUS_') {
$newStatus = 'ESIG'; if ($listInstance->requested_signature) {
$newStatus = 'ESIG';
} else {
$newStatus = 'EVIS';
}
} else { } else {
$newStatus = 'EVIS'; $newStatus = $status;
} }
} }
......
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