Skip to content

Commit

Permalink
FIX searchèuser filter expedition list Dolibarr#14290
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-lena committed Jan 6, 2021
1 parent 58e33c5 commit 7e59b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/expedition/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@
if ($search_sale > 0 || (!$user->rights->societe->client->voir && !$socid)) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
if ($search_user > 0)
{
$sql .= ", ".MAIN_DB_PREFIX."element_contact as ec";
$sql .= ", ".MAIN_DB_PREFIX."c_type_contact as tc";
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."element_contact as ec ON u.rowid = ec.element_id";
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."c_type_contact as tc ON tc.rowid = ec.fk_c_type_contact";
}
$sql .= " WHERE e.entity IN (".getEntity('expedition').")";
if ($search_product_category > 0) $sql .= " AND cp.fk_categorie = ".$search_product_category;
Expand Down

0 comments on commit 7e59b15

Please sign in to comment.