From 80c252dd6244a7c02364529820c2fb81a767af83 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 3 Nov 2012 21:33:55 +0100 Subject: [PATCH] Fix: Use same labels to go back to draft than other elements. Re-open is for "closed" to a validated status. Modify is for a validated status to draft. --- htdocs/fourn/commande/fiche.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index be8235011d0..c57d9e12bfc 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -1581,6 +1581,15 @@ if ($id > 0 || ! empty($ref)) } } + // Modify + if ($object->statut == 1) + { + if ($user->rights->fournisseur->commande->commander) + { + print ''.$langs->trans("Modify").''; + } + } + // Approve if ($object->statut == 1) { @@ -1606,7 +1615,7 @@ if ($id > 0 || ! empty($ref)) } // Reopen - if (in_array($object->statut, array(1, 5, 6, 7, 9))) + if (in_array($object->statut, array(5, 6, 7, 9))) { if ($user->rights->fournisseur->commande->commander) {