diff --git a/htdocs/core/actions_builddoc.inc.php b/htdocs/core/actions_builddoc.inc.php index c1af06597b0..216b32e9758 100644 --- a/htdocs/core/actions_builddoc.inc.php +++ b/htdocs/core/actions_builddoc.inc.php @@ -61,7 +61,7 @@ if ($action == 'builddoc' && ($permissiontoadd || !empty($usercangeneretedoc))) } elseif (!empty($object->fk_account)) { $object->fk_bank = $object->fk_account; } - //} + //} $outputlangs = $langs; diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 13b2e348bc4..6c129b86250 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -5334,6 +5334,7 @@ abstract class CommonObject protected function commonGenerateDocument($modelspath, $modele, $outputlangs, $hidedetails, $hidedesc, $hideref, $moreparams = null) { global $conf, $langs, $user, $hookmanager, $action; + $srctemplatepath = ''; $parameters = array('modelspath'=>$modelspath, 'modele'=>$modele, 'outputlangs'=>$outputlangs, 'hidedetails'=>$hidedetails, 'hidedesc'=>$hidedesc, 'hideref'=>$hideref, 'moreparams'=>$moreparams);