Update api_products.class.php
This commit is contained in:
parent
b271e1a3b0
commit
20acf440a3
@ -132,7 +132,7 @@ class Products extends DolibarrApi
|
|||||||
if ($mode == 1) {
|
if ($mode == 1) {
|
||||||
// Show only products
|
// Show only products
|
||||||
$sql.= " AND t.fk_product_type = 0";
|
$sql.= " AND t.fk_product_type = 0";
|
||||||
} elseif ($mode == 2) {
|
} elseif ($mode == 2) {
|
||||||
// Show only services
|
// Show only services
|
||||||
$sql.= " AND t.fk_product_type = 1";
|
$sql.= " AND t.fk_product_type = 1";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user