Skip to content

Commit

Permalink
Merge pull request #8918 from atm-gauthier/6.0_fix_entity_select_prod…
Browse files Browse the repository at this point in the history
…_fourn_prices

FIX : entity test must be on product_fourn_price table and not product table
  • Loading branch information
eldy committed Jun 13, 2018
2 parents 426eb17 + 45ecb02 commit 5fcfad5
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 5fcfad5

Please sign in to comment.