Merge pull request #16614 from frederic34/patch-3

replace value with constant
This commit is contained in:
Laurent Destailleur 2021-03-11 15:58:19 +01:00 committed by GitHub
commit 50bf0b92e3
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;