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.
This commit is contained in:
Laurent Destailleur 2012-11-03 21:33:55 +01:00
parent 454b8b7279
commit 80c252dd62

View File

@ -1581,6 +1581,15 @@ if ($id > 0 || ! empty($ref))
}
}
// Modify
if ($object->statut == 1)
{
if ($user->rights->fournisseur->commande->commander)
{
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&amp;action=reopen">'.$langs->trans("Modify").'</a>';
}
}
// 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)
{