Skip to content

Commit

Permalink
Fix: We must refresh object also if option MAIN_DISABLE_PDF_AUTOUPDATE
Browse files Browse the repository at this point in the history
is 1 (Cyril ZEKSER)
  • Loading branch information
eldy committed Mar 7, 2013
1 parent a0803e7 commit 668249a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/commande/fiche.php
Expand Up @@ -725,6 +725,8 @@

if ($result > 0)
{
$ret=$object->fetch($object->id); // Reload to get new records

if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE))
{
// Define output language
Expand All @@ -737,7 +739,6 @@
$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);
}

Expand Down

0 comments on commit 668249a

Please sign in to comment.