FIX task ODT company object not correctly retrieved
This commit is contained in:
parent
ad82909d08
commit
d658e2cf31
@ -415,6 +415,7 @@ class doc_generic_task_odt extends ModelePDFTask
|
||||
}
|
||||
$project= new Project($this->db);
|
||||
$project->fetch($object->fk_project);
|
||||
$project->fetch_thirdparty();
|
||||
|
||||
$dir = $conf->projet->dir_output. "/" . $project->ref. "/";
|
||||
$objectref = dol_sanitizeFileName($object->ref);
|
||||
@ -449,7 +450,7 @@ class doc_generic_task_odt extends ModelePDFTask
|
||||
|
||||
dol_mkdir($conf->projet->dir_temp);
|
||||
|
||||
$socobject=$object->thirdparty;
|
||||
$socobject=$project->thirdparty;
|
||||
|
||||
// Make substitution
|
||||
$substitutionarray=array(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user