Merge pull request #18277 from atm-florianm/FIX_forum_post_37369_wrong_conf_used

FIX $conf->task used but it does not exist, use $conf->projet instead
This commit is contained in:
Laurent Destailleur 2021-07-31 12:20:18 +02:00 committed by GitHub
commit 04911bde25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -524,8 +524,8 @@ class doc_generic_task_odt extends ModelePDFTask
//print "conf->societe->dir_temp=".$conf->societe->dir_temp;
dol_mkdir($conf->projet->dir_temp);
if (!is_writable($conf->task->dir_temp)) {
$this->error = "Failed to write in temp directory ".$conf->task->dir_temp;
if (!is_writable($conf->projet->dir_temp)) {
$this->error = "Failed to write in temp directory ".$conf->projet->dir_temp;
dol_syslog('Error in write_file: '.$this->error, LOG_ERR);
return -1;
}