Skip to content

Commit

Permalink
Merge pull request #430 from GPCsolutions/supplierorderselector
Browse files Browse the repository at this point in the history
Fix regression in supplier's order product selector
  • Loading branch information
eldy committed Oct 1, 2012
2 parents fd0cd72 + 110d3a5 commit 48a0747
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 @@ -1370,10 +1370,10 @@ function select_produits_fournisseurs_do($socid,$selected='',$htmlname='producti
$sql.= " s.nom";
$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";
if ($socid) $sql.= " AND pfp.fk_soc = ".$socid;
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON pfp.fk_soc = s.rowid";
$sql.= " WHERE p.entity IN (".getEntity('product', 1).")";
$sql.= " AND p.tobuy = 1";
if ($socid) $sql.= " AND pfp.fk_soc = ".$socid;
if (strval($filtertype) != '') $sql.=" AND p.fk_product_type=".$filtertype;
if (! empty($filtre)) $sql.=" ".$filtre;
// Add criteria on ref/label
Expand Down

0 comments on commit 48a0747

Please sign in to comment.