FIX #24508 Label not reported when creating a supplier invoice template (#25340)

This commit is contained in:
Alexandre SPANGARO 2023-07-12 17:07:22 +02:00 committed by GitHub
parent 76d6a30d48
commit 5ef0ebb543
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');