FIX
This commit is contained in:
parent
b046d92efb
commit
6a80d81d4a
@ -4291,7 +4291,7 @@ abstract class CommonObject
|
|||||||
if ($elementTable == 'commande_fournisseur_dispatch') {
|
if ($elementTable == 'commande_fournisseur_dispatch') {
|
||||||
$fieldstatus = "status";
|
$fieldstatus = "status";
|
||||||
}
|
}
|
||||||
if (is_array($this->fields) && array_key_exists('status', $this->fields)) {
|
if (isset($this->fields) && is_array($this->fields) && array_key_exists('status', $this->fields)) {
|
||||||
$fieldstatus = 'status';
|
$fieldstatus = 'status';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -429,10 +429,10 @@ if (empty($reshook)) {
|
|||||||
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) {
|
if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) {
|
||||||
$outputlangs = $langs;
|
$outputlangs = $langs;
|
||||||
$newlang = '';
|
$newlang = '';
|
||||||
if ($conf->global->MAIN_MULTILANGS && empty($newlang) && GETPOST('lang_id', 'aZ09')) {
|
if (!empty($conf->global->MAIN_MULTILANGS) && empty($newlang) && GETPOST('lang_id', 'aZ09')) {
|
||||||
$newlang = GETPOST('lang_id', 'aZ09');
|
$newlang = GETPOST('lang_id', 'aZ09');
|
||||||
}
|
}
|
||||||
if ($conf->global->MAIN_MULTILANGS && empty($newlang)) {
|
if (!empty($conf->global->MAIN_MULTILANGS) && empty($newlang)) {
|
||||||
$newlang = $object->thirdparty->default_lang;
|
$newlang = $object->thirdparty->default_lang;
|
||||||
}
|
}
|
||||||
if (!empty($newlang)) {
|
if (!empty($newlang)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user