2
0
forked from Wavyzz/dolibarr

FIX fatal error

This commit is contained in:
Laurent Destailleur
2024-08-02 13:52:04 +02:00
parent f002fb4ed1
commit 12e6579724

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;
}