diff --git a/htdocs/categories/viewcat.php b/htdocs/categories/viewcat.php index 5999865232a..84770acdaff 100644 --- a/htdocs/categories/viewcat.php +++ b/htdocs/categories/viewcat.php @@ -590,7 +590,8 @@ if ($type == Categorie::TYPE_CUSTOMER) { print ''; print ''; print ''; print '
'; print $langs->trans("AddCustomerIntoCategory").'  '; - print $form->select_company('', 'elemid', 's.client IN (1,3)'); + $filter = 's.client IN (1,3)'; + print $form->select_company('', 'elemid', $filter); print '
'; @@ -670,7 +671,8 @@ if ($type == Categorie::TYPE_SUPPLIER) { print ''; print ''; print ''; print '
'; print $langs->trans("AddSupplierIntoCategory").'  '; - print $form->select_company('', 'elemid', 's.fournisseur = 1'); + $filter ='s.fournisseur = 1'; + print $form->select_company('', 'elemid', $filter); print '
'; diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php index 3a3fdfe50a0..d28753632d2 100644 --- a/htdocs/comm/propal/card.php +++ b/htdocs/comm/propal/card.php @@ -1810,7 +1810,8 @@ if ($action == 'create') { //$warehouse_id = $soc->warehouse_id; } else { print ''; - print img_picto('', 'company', 'class="pictofixedwidth"').$form->select_company('', 'socid', '((s.client = 1 OR s.client = 2 OR s.client = 3) AND status=1)', 'SelectThirdParty', 1, 0, null, 0, 'minwidth300 maxwidth500 widthcentpercentminusxx'); + $filter = '((s.client = 1 OR s.client = 2 OR s.client = 3) AND status=1)'; + print img_picto('', 'company', 'class="pictofixedwidth"').$form->select_company('', 'socid', $filter, 'SelectThirdParty', 1, 0, null, 0, 'minwidth300 maxwidth500 widthcentpercentminusxx'); // reload page to retrieve customer informations if (empty($conf->global->RELOAD_PAGE_ON_CUSTOMER_CHANGE_DISABLED)) { print '