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