Fix title not saved
This commit is contained in:
parent
7871a41c5c
commit
4ed14d4903
@ -156,7 +156,7 @@ if (empty($reshook))
|
|||||||
// Create predefined invoice
|
// Create predefined invoice
|
||||||
if ($action == 'add')
|
if ($action == 'add')
|
||||||
{
|
{
|
||||||
if (!GETPOST('titre', 'nohtml'))
|
if (!GETPOST('title', 'alphanohtml'))
|
||||||
{
|
{
|
||||||
setEventMessages($langs->transnoentities("ErrorFieldRequired", $langs->trans("Title")), null, 'errors');
|
setEventMessages($langs->transnoentities("ErrorFieldRequired", $langs->trans("Title")), null, 'errors');
|
||||||
$action = "create";
|
$action = "create";
|
||||||
@ -289,7 +289,7 @@ if (empty($reshook))
|
|||||||
elseif ($action == 'setref' && $user->rights->facture->creer)
|
elseif ($action == 'setref' && $user->rights->facture->creer)
|
||||||
{
|
{
|
||||||
//var_dump(GETPOST('ref', 'alpha'));exit;
|
//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)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
$object->titre = GETPOST('ref', 'alpha'); // deprecated
|
$object->titre = GETPOST('ref', 'alpha'); // deprecated
|
||||||
@ -967,7 +967,7 @@ if ($action == 'create')
|
|||||||
|
|
||||||
// Title
|
// Title
|
||||||
print '<tr><td class="titlefieldcreate fieldrequired">'.$langs->trans("Title").'</td><td>';
|
print '<tr><td class="titlefieldcreate fieldrequired">'.$langs->trans("Title").'</td><td>';
|
||||||
print '<input class="flat quatrevingtpercent" type="text" name="titre" value="'.dol_escape_htmltag(GETPOST("titre", 'alphanohtml')).'">';
|
print '<input class="flat quatrevingtpercent" type="text" name="title" value="'.dol_escape_htmltag(GETPOST("titre", 'alphanohtml')).'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Third party
|
// Third party
|
||||||
@ -1237,7 +1237,7 @@ if ($action == 'create')
|
|||||||
}
|
}
|
||||||
$morehtmlref .= '</div>';
|
$morehtmlref .= '</div>';
|
||||||
|
|
||||||
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 '<div class="fichecenter">';
|
print '<div class="fichecenter">';
|
||||||
print '<div class="fichehalfleft">';
|
print '<div class="fichehalfleft">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user