Skip to content

Commit

Permalink
FIX : entity test must be on product_fourn_price table and not produc…
Browse files Browse the repository at this point in the history
…t table
  • Loading branch information
atm-gauthier committed Jun 5, 2018
1 parent 7eaa201 commit 45ecb02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/html.form.class.php
Expand Up @@ -2581,7 +2581,7 @@ function select_product_fourn_price($productid, $htmlname='productfournpriceid',
$sql.= " FROM ".MAIN_DB_PREFIX."product as p";
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."product_fournisseur_price as pfp ON p.rowid = pfp.fk_product";
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON pfp.fk_soc = s.rowid";
$sql.= " WHERE p.entity IN (".getEntity('productprice').")";
$sql.= " WHERE pfp.entity IN (".getEntity('productprice').")";
$sql.= " AND p.tobuy = 1";
$sql.= " AND s.fournisseur = 1";
$sql.= " AND p.rowid = ".$productid;
Expand Down

0 comments on commit 45ecb02

Please sign in to comment.