replace value with constant

This commit is contained in:
Frédéric FRANCE 2021-03-10 15:43:50 +01:00 committed by GitHub
parent 9ed128c6fa
commit 204302ac15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -510,7 +510,7 @@ if (empty($reshook)) {
} }
} elseif ($action == 'classifybilled' && $user->rights->ficheinter->creer) { } elseif ($action == 'classifybilled' && $user->rights->ficheinter->creer) {
// Classify Billed // Classify Billed
$result = $object->setStatut(2); $result = $object->setStatut(Fichinter::STATUS_BILLED);
if ($result > 0) { if ($result > 0) {
header('Location: '.$_SERVER["PHP_SELF"].'?id='.$object->id); header('Location: '.$_SERVER["PHP_SELF"].'?id='.$object->id);
exit; exit;
@ -519,7 +519,7 @@ if (empty($reshook)) {
} }
} elseif ($action == 'classifyunbilled' && $user->rights->ficheinter->creer) { } elseif ($action == 'classifyunbilled' && $user->rights->ficheinter->creer) {
// Classify unbilled // Classify unbilled
$result = $object->setStatut(1); $result = $object->setStatut(Fichinter::STATUS_VALIDATED);
if ($result > 0) { if ($result > 0) {
header('Location: '.$_SERVER["PHP_SELF"].'?id='.$object->id); header('Location: '.$_SERVER["PHP_SELF"].'?id='.$object->id);
exit; exit;
@ -528,7 +528,7 @@ if (empty($reshook)) {
} }
} elseif ($action == 'classifydone' && $user->rights->ficheinter->creer) { } elseif ($action == 'classifydone' && $user->rights->ficheinter->creer) {
// Classify Done // Classify Done
$result = $object->setStatut(3); $result = $object->setStatut(Fichinter::STATUS_CLOSED);
if ($result > 0) { if ($result > 0) {
header('Location: '.$_SERVER["PHP_SELF"].'?id='.$object->id); header('Location: '.$_SERVER["PHP_SELF"].'?id='.$object->id);
exit; exit;