diff --git a/htdocs/exports/class/export.class.php b/htdocs/exports/class/export.class.php index 5cabec8df2061..214a518b94478 100644 --- a/htdocs/exports/class/export.class.php +++ b/htdocs/exports/class/export.class.php @@ -837,7 +837,7 @@ public function build_file($user, $model, $datatoexport, $array_selected, $array $params = []; if (!empty($item['method_params'])) { foreach ($item['method_params'] as $paramName) { - $params[] = $obj->$paramName ?? null; + $params[] = $obj->$paramName ?? ($paramName ?? null); } } $value = $tmpObject->$methodName(...$params);