Merge pull request #5282 from atm-ph/fix_3.9_miss_value_extrafield_on_builddoc

Fix builddoc with odt lost value of extrafields as "sellist" on view …
This commit is contained in:
Laurent Destailleur 2016-06-04 14:38:12 +02:00
commit c7aa486d93

View File

@ -381,6 +381,7 @@ class doc_generic_proposal_odt extends ModelePDFPropales
$tmparray = array_merge($array_user,$array_soc,$array_thirdparty,$array_objet,$array_other,$array_thirdparty_contact);
complete_substitutions_array($tmparray, $outputlangs, $object);
$object->fetch_optionals();
// Call the ODTSubstitution hook
$parameters=array('file'=>$file,'object'=>$object,'outputlangs'=>$outputlangs,'substitutionarray'=>&$tmparray);
$reshook=$hookmanager->executeHooks('ODTSubstitution',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks