Fix generation of PDF for recruitment module
This commit is contained in:
parent
830bd9ec6a
commit
c5349a07a7
@ -1006,12 +1006,11 @@ class RecruitmentCandidature extends CommonObject
|
|||||||
$langs->load("recruitment@recruitment");
|
$langs->load("recruitment@recruitment");
|
||||||
|
|
||||||
if (!dol_strlen($modele)) {
|
if (!dol_strlen($modele)) {
|
||||||
$modele = 'standard_recruitmentcandidature';
|
if (!empty($conf->global->RECRUITMENTCANDIDATURE_ADDON_PDF))
|
||||||
|
{
|
||||||
if (!empty($this->modelpdf)) {
|
|
||||||
$modele = $this->modelpdf;
|
|
||||||
} elseif (!empty($conf->global->RECRUITMENTCANDIDATURE_ADDON_PDF)) {
|
|
||||||
$modele = $conf->global->RECRUITMENTCANDIDATURE_ADDON_PDF;
|
$modele = $conf->global->RECRUITMENTCANDIDATURE_ADDON_PDF;
|
||||||
|
} else {
|
||||||
|
$modele = ''; // No default value. For job application, we allow to disable all PDF generation
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1092,12 +1092,11 @@ class RecruitmentJobPosition extends CommonObject
|
|||||||
$langs->load("recruitment");
|
$langs->load("recruitment");
|
||||||
|
|
||||||
if (!dol_strlen($modele)) {
|
if (!dol_strlen($modele)) {
|
||||||
$modele = 'standard_recruitmentjobposition';
|
if (!empty($conf->global->RECRUITMENTJOBPOSITION_ADDON_PDF))
|
||||||
|
{
|
||||||
if ($this->model_pdf) {
|
|
||||||
$modele = $this->model_pdf;
|
|
||||||
} elseif (!empty($conf->global->RECRUITMENTJOBPOSITION_ADDON_PDF)) {
|
|
||||||
$modele = $conf->global->RECRUITMENTJOBPOSITION_ADDON_PDF;
|
$modele = $conf->global->RECRUITMENTJOBPOSITION_ADDON_PDF;
|
||||||
|
} else {
|
||||||
|
$modele = ''; // No default value. For job position, we allow to disable all PDF generation
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user