From 5e7890729250285abad8d26a16bcc4e07ee94144 Mon Sep 17 00:00:00 2001 From: BENKE Charlene <1179011+defrance@users.noreply.github.com> Date: Wed, 13 Mar 2019 10:09:17 +0100 Subject: [PATCH] replace "brouillonner" by "setdraft" --- htdocs/expensereport/card.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 ''; } }