diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index 15494a51758..d52c1886f87 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -933,7 +933,7 @@ if (empty($reshook)) } } - if ($action == "confirm_brouillonner" && GETPOST('confirm', 'alpha')=="yes" && $id > 0 && $user->rights->expensereport->creer) + if ($action == "confirm_setdraft" && GETPOST('confirm', 'alpha')=="yes" && $id > 0 && $user->rights->expensereport->creer) { $object = new ExpenseReport($db); $object->fetch($id); @@ -1640,7 +1640,7 @@ else $formconfirm=$form->formconfirm($_SEVER["PHP_SELF"]."?id=".$id, $langs->trans("Cancel"), "", "confirm_cancel", $array_input, "", 1); } - if ($action == 'brouillonner') + if ($action == 'setdraft') { $formconfirm=$form->formconfirm($_SERVER["PHP_SELF"]."?id=".$id, $langs->trans("BrouillonnerTrip"), $langs->trans("ConfirmBrouillonnerTrip"), "confirm_brouillonner", "", "", 1); } @@ -2443,7 +2443,7 @@ if ($action != 'create' && $action != 'edit') if ($user->id == $object->fk_user_author || $user->id == $object->fk_user_valid) { // Brouillonner - print '
'; + print ''; } } @@ -2457,7 +2457,7 @@ if ($action != 'create' && $action != 'edit') if (in_array($object->fk_user_author, $user->getAllChildIds(1))) { // Brouillonner - print ''; + print ''; } }