Update card.php

This commit is contained in:
Laurent Destailleur 2020-12-03 14:30:07 +01:00 committed by GitHub
parent 17d5bb5cd4
commit 068587fcee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -953,7 +953,8 @@ if (empty($reshook))
if ($result > 0) {
$ret = $object->fetch($object->id); // Reload to get new records
$object->fetch_thirdparty();
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) {
// Define output language
$outputlangs = $langs;
@ -966,8 +967,6 @@ if (empty($reshook))
}
$object->generateDocument($object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref);
} else {
$object->fetch_thirdparty();
}
unset($_POST['prod_entry_mode']);