update model_pdf in object

This commit is contained in:
Christophe Battarel
2023-09-14 14:55:36 +02:00
parent 773f68ab4f
commit 85b5148ff4

View File

@@ -5585,6 +5585,9 @@ abstract class CommonObject
// output format that does not support UTF8.
$sav_charset_output = empty($outputlangs->charset_output) ? '' : $outputlangs->charset_output;
// update model_pdf in object
$this->model_pdf = $modele;
if (in_array(get_class($this), array('Adherent'))) {
$resultwritefile = $obj->write_file($this, $outputlangs, $srctemplatepath, 'member', 1, 'tmp_cards', $moreparams);
} else {