diff --git a/htdocs/accountancy/admin/index.php b/htdocs/accountancy/admin/index.php index 98320613bfc..f8c0c95d3c1 100644 --- a/htdocs/accountancy/admin/index.php +++ b/htdocs/accountancy/admin/index.php @@ -91,7 +91,6 @@ if ($action == 'update') { if (!$error) { foreach ($list as $constname) { $constvalue = GETPOST($constname, 'alpha'); - var_dump($constname); if (!dolibarr_set_const($db, $constname, $constvalue, 'chaine', 0, '', $conf->entity)) { $error++; } diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index 85da1594179..db1934bfc23 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -654,8 +654,8 @@ if ($search_level) { if ($search_parent_name) { $sql .= natural_search("s2.nom", $search_parent_name); } -if ($search_stcomm != '' && $search_stcomm != -2) { - $sql .= natural_search("s.fk_stcomm", $search_stcomm, 2); +if ($search_stcomm != '' && $search_stcomm != '-2') { // -2 is not filter + $sql .= natural_search("s.fk_stcomm", $search_stcomm, 1); } if ($search_import_key) { $sql .= natural_search("s.import_key", $search_import_key); @@ -830,7 +830,7 @@ if (is_array($search_level) && count($search_level)) { if ($search_status != '') { $param .= '&search_status='.urlencode($search_status); } -if ($search_stcomm != '') { +if ($search_stcomm != '' && $search_stcomm != '-2') { // -2 is no filter $param .= '&search_stcomm='.urlencode($search_stcomm); } if ($search_parent_name != '') {