Fix no pdf generation if pdf template not activated
This commit is contained in:
parent
c34081cf53
commit
6eb16f66e0
1 changed files with 1 additions and 1 deletions
|
|
@ -572,7 +572,7 @@ if (empty($reshook))
|
|||
if ($result > 0)
|
||||
{
|
||||
// Define output language
|
||||
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE))
|
||||
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE) && ! empty($conf->global->CONTRACT_ADDON_PDF)) // No generation if default type not defined
|
||||
{
|
||||
$outputlangs = $langs;
|
||||
$newlang = '';
|
||||
|
|
|
|||
Loading…
Reference in a new issue