Skip to content

Commit

Permalink
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
eldy committed Jul 16, 2016
2 parents a9b1693 + 70d1c7d commit afbdf40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion htdocs/contrat/class/contrat.class.php
Expand Up @@ -2422,7 +2422,7 @@ function fetch($id, $ref='')
$sql.= " p.ref as product_ref,";
$sql.= " p.label as product_label,";
$sql.= " p.description as product_desc,";
$sql.= " p.type as product_type,";
$sql.= " p.fk_product_type as product_type,";
$sql.= " t.description,";
$sql.= " t.date_commande,";
$sql.= " t.date_ouverture_prevue as date_ouverture_prevue,";
Expand Down
8 changes: 4 additions & 4 deletions htdocs/product/class/api_product.class.php
Expand Up @@ -96,7 +96,7 @@ function get($id='', $ref='', $ref_ext='')
*
* @param int $mode Use this param to filter list (0 for all, 1 for only product, 2 for only service)
* @param mixed $to_sell Filter products to sell (1) or not to sell (0)
* @param mixed $to_buy Filter products to nuy (1) or not to buy (0)
* @param mixed $to_buy Filter products to buy (1) or not to buy (0)
* @param string $sortfield Sort field
* @param string $sortorder Sort order
* @param int $limit Limit for list
Expand Down Expand Up @@ -124,7 +124,7 @@ function getList($mode=0, $to_sell='', $to_buy='', $sortfield = "p.ref", $sortor
// Show product on sell
if ($to_sell) $sql.= " AND p.to_sell = ".$db->escape($to_sell);
// Show product on buy
if ($to_buy) $sql.= " AND p.to_nuy = ".$db->escape($to_nuy);
if ($to_buy) $sql.= " AND p.to_buy = ".$db->escape($to_buy);

$nbtotalofrecords = 0;
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
Expand Down Expand Up @@ -176,7 +176,7 @@ function getList($mode=0, $to_sell='', $to_buy='', $sortfield = "p.ref", $sortor
* @param int $mode Use this param to filter list (0 for all, 1 for only product, 2 for only service)
* @param int $category Use this param to filter list by category
* @param mixed $to_sell Filter products to sell (1) or not to sell (0)
* @param mixed $to_buy Filter products to nuy (1) or not to buy (0)
* @param mixed $to_buy Filter products to buy (1) or not to buy (0)
* @param string $sortfield Sort field
* @param string $sortorder Sort order
* @param int $limit Limit for list
Expand Down Expand Up @@ -209,7 +209,7 @@ function getByCategory($mode=0, $category=0, $to_sell='', $to_buy='', $sortfield
// Show product on sell
if ($to_sell) $sql.= " AND p.to_sell = ".$db->escape($to_sell);
// Show product on buy
if ($to_buy) $sql.= " AND p.to_nuy = ".$db->escape($to_nuy);
if ($to_buy) $sql.= " AND p.to_buy = ".$db->escape($to_buy);

$nbtotalofrecords = 0;
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
Expand Down

0 comments on commit afbdf40

Please sign in to comment.