Fix: We must refresh object also if option MAIN_DISABLE_PDF_AUTOUPDATE
is 1 (Cyril ZEKSER)
This commit is contained in:
parent
a0803e758e
commit
668249a195
@ -725,6 +725,8 @@ else if ($action == 'addline' && $user->rights->commande->creer)
|
||||
|
||||
if ($result > 0)
|
||||
{
|
||||
$ret=$object->fetch($object->id); // Reload to get new records
|
||||
|
||||
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE))
|
||||
{
|
||||
// Define output language
|
||||
@ -737,7 +739,6 @@ else if ($action == 'addline' && $user->rights->commande->creer)
|
||||
$outputlangs->setDefaultLang($newlang);
|
||||
}
|
||||
|
||||
$ret=$object->fetch($object->id); // Reload to get new records
|
||||
commande_pdf_create($db, $object, $object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref, $hookmanager);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user