Fix: Substitution of free text

This commit is contained in:
Laurent Destailleur 2011-10-27 10:07:28 +02:00
parent 543460f14f
commit 7b61c2c436

View File

@ -358,15 +358,13 @@ class doc_generic_invoice_odt extends ModelePDFFactures
// Make substitutions into odt of freetext // Make substitutions into odt of freetext
if ($newfreetext) try {
{ $odfHandler->setVars('free_text', $newfreetext, true, 'UTF-8');
try {
$odfHandler->setVars('free_text', $newfreetext, true, 'UTF-8');
}
catch(OdfException $e)
{
}
} }
catch(OdfException $e)
{
}
// Make substitutions into odt of user info // Make substitutions into odt of user info
$tmparray=$this->get_substitutionarray_user($user,$outputlangs); $tmparray=$this->get_substitutionarray_user($user,$outputlangs);
//var_dump($tmparray); exit; //var_dump($tmparray); exit;