Don't discard previously collected data

For keeping all previously collected data (i.e. company_... values), one has to merge the array but not to assign a new one.
This commit is contained in:
Rüdiger Hahn 2021-03-05 11:32:03 +01:00 committed by GitHub
parent 83df996bc2
commit 18fc169cd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -449,7 +449,7 @@ class doc_generic_shipment_odt extends ModelePdfExpedition
}
// Replace tags of object + external modules
$tmparray = $this->get_substitutionarray_shipment($object, $outputlangs);
$tmparray = array_merge($tmparray, $this->get_substitutionarray_shipment($object, $outputlangs));
complete_substitutions_array($tmparray, $outputlangs, $object);
// Call the ODTSubstitution hook