From 5ef0ebb54312c5295d1cde8a2abf2b26bbd637d6 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Wed, 12 Jul 2023 17:07:22 +0200 Subject: [PATCH] FIX #24508 Label not reported when creating a supplier invoice template (#25340) --- htdocs/fourn/facture/card-rec.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/fourn/facture/card-rec.php b/htdocs/fourn/facture/card-rec.php index e996f29b3c8..20206622c9c 100644 --- a/htdocs/fourn/facture/card-rec.php +++ b/htdocs/fourn/facture/card-rec.php @@ -63,6 +63,7 @@ $page = GETPOSTISSET('pageplusone') ? (GETPOST('pageplusone') - 1) : GETPOST("pa $id = (GETPOST('facid', 'int') ? GETPOST('facid', 'int') : GETPOST('id', 'int')); $lineid = GETPOST('lineid', 'int'); $title = GETPOST('title', 'alpha'); +$libelle = GETPOST('libelle', 'alpha'); $ref_supplier = GETPOST('ref_supplier', 'alpha'); $projectid = GETPOST('projectid', 'int'); $year_date_when = GETPOST('year_date_when'); @@ -187,6 +188,7 @@ if (empty($reshook)) { if (! $error) { $object->titre = GETPOST('title', 'alphanohtml'); // deprecated $object->title = GETPOST('title', 'alphanohtml'); + $object->libelle = GETPOST('libelle','alpha'); $object->fk_project = GETPOST('projectid', 'int'); $object->ref_supplier = GETPOST('ref_supplier', 'alphanohtml');