FIX wrong "fournisseur" var value checking
This commit is contained in:
parent
d423633266
commit
6aa70da43f
1 changed files with 1 additions and 1 deletions
|
|
@ -1388,7 +1388,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
|||
if (getDolGlobalString('THIRDPARTY_SUPPLIER_BY_DEFAULT')) {
|
||||
$default = 1;
|
||||
}
|
||||
print $form->selectyesno("fournisseur", (GETPOSTINT('fournisseur') != '' ? GETPOSTINT('fournisseur') : (GETPOST("type") == '' ? $default : $object->fournisseur)), 1, 0, (GETPOST("type") == '' ? 1 : 0), 1);
|
||||
print $form->selectyesno("fournisseur", (GETPOSTINT('fournisseur') > 0 ? GETPOSTINT('fournisseur') : (GETPOST("type") == '' ? $default : $object->fournisseur)), 1, 0, (GETPOST("type") == '' ? 1 : 0), 1);
|
||||
print '</td>';
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue