Merge pull request #16614 from frederic34/patch-3
replace value with constant
This commit is contained in:
commit
50bf0b92e3
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user