From 4ed14d49035656f2f7046e057bc0a20aeeff4adf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 19 Dec 2020 18:52:05 +0100 Subject: [PATCH] Fix title not saved --- htdocs/compta/facture/card-rec.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/compta/facture/card-rec.php b/htdocs/compta/facture/card-rec.php index 11dec142a17..b978de677a9 100644 --- a/htdocs/compta/facture/card-rec.php +++ b/htdocs/compta/facture/card-rec.php @@ -156,7 +156,7 @@ if (empty($reshook)) // Create predefined invoice if ($action == 'add') { - if (!GETPOST('titre', 'nohtml')) + if (!GETPOST('title', 'alphanohtml')) { setEventMessages($langs->transnoentities("ErrorFieldRequired", $langs->trans("Title")), null, 'errors'); $action = "create"; @@ -289,7 +289,7 @@ if (empty($reshook)) elseif ($action == 'setref' && $user->rights->facture->creer) { //var_dump(GETPOST('ref', 'alpha'));exit; - $result = $object->setValueFrom('titre', $ref, '', null, 'text', '', $user, 'BILLREC_MODIFY'); + $result = $object->setValueFrom('title', $ref, '', null, 'text', '', $user, 'BILLREC_MODIFY'); if ($result > 0) { $object->titre = GETPOST('ref', 'alpha'); // deprecated @@ -967,7 +967,7 @@ if ($action == 'create') // Title print ''.$langs->trans("Title").''; - print ''; + print ''; print ''; // Third party @@ -1237,7 +1237,7 @@ if ($action == 'create') } $morehtmlref .= ''; - dol_banner_tab($object, 'ref', $linkback, 1, 'titre', 'none', $morehtmlref, '', 0, '', $morehtmlright); + dol_banner_tab($object, 'ref', $linkback, 1, 'title', 'none', $morehtmlref, '', 0, '', $morehtmlright); print '
'; print '
';