FIX fatal error

This commit is contained in:
Laurent Destailleur 2024-08-02 13:52:04 +02:00
parent 6558c69ac7
commit fc2bf8134f

View file

@ -178,7 +178,7 @@ if ($action == 'add' && !empty($permissiontoadd)) {
// Special field
$model_pdf = GETPOST('model');
if (!empty($model_pdf) && property_exists($this, 'model_pdf')) {
if (!empty($model_pdf) && property_exists($object, 'model_pdf')) {
$object->model_pdf = $model_pdf;
}