Update doc_generic_user_odt.modules.php

This commit is contained in:
Frédéric FRANCE 2020-11-17 11:55:05 +01:00 committed by GitHub
parent fb5385180f
commit fcfd630f84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,12 +364,6 @@ class doc_generic_user_odt extends ModelePDFUser
$tmparray = array_merge($array_user, $array_soc, $array_thirdparty, $array_other, $array_thirdparty_contact);
complete_substitutions_array($tmparray, $outputlangs, $object);
// to list all tags in odt template
$tags = '';
foreach ($tmparray as $key => $value) {
$tags .= '{' . $key . '} => ' . $value ."\n";
}
$tmparray = array_merge($tmparray, array('__ALL_TAGS__' => $tags));
$object->fetch_optionals();
// Call the ODTSubstitution hook
$parameters = array('file'=>$file, 'object'=>$object, 'outputlangs'=>$outputlangs, 'substitutionarray'=>&$tmparray);