2
0
forked from Wavyzz/dolibarr

fix missing concat

This commit is contained in:
John BOTELLA
2024-12-09 16:24:57 +01:00
parent 505449451b
commit 956cea1167

View File

@@ -2619,7 +2619,9 @@ function pdf_getLinkedObjects(&$object, $outputlangs)
$parameters = array('linkedobjects' => $linkedobjects, 'outputlangs' => $outputlangs);
$action = '';
$reshook = $hookmanager->executeHooks('pdf_getLinkedObjects', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
if ($reshook>0) {
if (empty($reshook)) {
$linkedobjects = array_replace($linkedobjects, $hookmanager->resArray); // array_replace is used to preserve keys
} elseif ($reshook>0) {
// The array must be reinserted even if it is empty because clearing the array could be one of the actions performed by the hook.
$linkedobjects = $hookmanager->resArray;
}