From 30253598992f5c87bdee07eb30a30bcf1035c61b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 27 Oct 2011 02:44:05 +0200 Subject: [PATCH] Fix: Substitution missing --- .../modules/facture/doc/doc_generic_invoice_odt.modules.php | 3 ++- htdocs/core/modules/societe/doc/doc_generic_odt.modules.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php index 29db22df3fd..04e4a00b63a 100644 --- a/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php +++ b/htdocs/core/modules/facture/doc/doc_generic_invoice_odt.modules.php @@ -432,8 +432,9 @@ class doc_generic_invoice_odt extends ModelePDFFactures { } } - // Replace tags of object + // Replace tags of object + external modules $tmparray=$this->get_substitutionarray_object($object,$outputlangs); + complete_substitutions_array($tmparray, $outputlangs, $object); foreach($tmparray as $key=>$value) { try { diff --git a/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php b/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php index 76fb65db8c7..b466f16d8d4 100644 --- a/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php +++ b/htdocs/core/modules/societe/doc/doc_generic_odt.modules.php @@ -280,7 +280,7 @@ class doc_generic_odt extends ModeleThirdPartyDoc } // Make substitutions into odt of thirdparty + external modules $tmparray=$this->get_substitutionarray_thirdparty($object,$outputlangs); - complete_substitutions_array($tmparray, $langs, $object); + complete_substitutions_array($tmparray, $ouputlangs, $object); //var_dump($object->id); exit; foreach($tmparray as $key=>$value) {