From 24ee2bce14b975ea89f90e0d0adc314659379a0a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 18 Oct 2016 12:57:30 +0200 Subject: [PATCH] FIX Can edit the customer ref even if order is not draft. --- htdocs/commande/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index dd9a45eae3d..0930a205151 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -1981,7 +1981,7 @@ if ($action == 'create' && $user->rights->commande->creer) print ''; - if ($action != 'refcustomer' && $object->brouillon) + if ($action != 'refcustomer') print ''; print '
'; print $langs->trans('RefCustomer') . ''; print '' . img_edit($langs->trans('Modify')) . '
'; print '';