From dc138e20e729e22870d02f4f349e1953e0a841e2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 12 Jul 2016 10:58:32 +0200 Subject: [PATCH] FIX: Can't edit label --- htdocs/fourn/facture/card.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index a8c2ff747ad..280664ea421 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -374,7 +374,7 @@ if (empty($reshook)) $object->ref = $_POST['ref']; $object->ref_supplier = $_POST['ref_supplier']; $object->socid = $_POST['socid']; - $object->libelle = $_POST['libelle']; + $object->libelle = $_POST['label']; $object->date = $datefacture; $object->date_echeance = $datedue; $object->note_public = GETPOST('note_public'); @@ -1321,7 +1321,7 @@ if ($action == 'create') print ''; // Label - print ''.$langs->trans('Label').''; + print ''.$langs->trans('Label').''; // Date invoice print ''.$langs->trans('DateInvoice').''; @@ -1711,8 +1711,8 @@ else print ''; // Label - print ''.$form->editfieldkey("Label",'libelle',$object->label,$object,($user->rights->fournisseur->facture->creer)).''; - print ''.$form->editfieldval("Label",'libelle',$object->label,$object,($user->rights->fournisseur->facture->creer)).''; + print ''.$form->editfieldkey("Label",'label',$object->label,$object,($user->rights->fournisseur->facture->creer)).''; + print ''.$form->editfieldval("Label",'label',$object->label,$object,($user->rights->fournisseur->facture->creer)).''; /* * List of payments