Update html.form.class.php
This commit is contained in:
parent
b2a9b48a78
commit
f18e513046
@ -1832,11 +1832,12 @@ class Form
|
|||||||
* @param string $filterkey Filtre des produits
|
* @param string $filterkey Filtre des produits
|
||||||
* @param int $statut -1=Return all products, 0=Products not on sell, 1=Products on sell
|
* @param int $statut -1=Return all products, 0=Products not on sell, 1=Products on sell
|
||||||
* @param int $outputmode 0=HTML select string, 1=Array
|
* @param int $outputmode 0=HTML select string, 1=Array
|
||||||
|
* @param int $limit Limit of line number
|
||||||
* @return array Array of keys for json
|
* @return array Array of keys for json
|
||||||
*/
|
*/
|
||||||
function select_produits_fournisseurs_list($socid,$selected='',$htmlname='productid',$filtertype='',$filtre='',$filterkey='',$statut=-1,$outputmode=0)
|
function select_produits_fournisseurs_list($socid,$selected='',$htmlname='productid',$filtertype='',$filtre='',$filterkey='',$statut=-1,$outputmode=0,$limit=100)
|
||||||
{
|
{
|
||||||
global $langs,$conf;
|
global $langs,$conf,$db;
|
||||||
|
|
||||||
$out='';
|
$out='';
|
||||||
$outarray=array();
|
$outarray=array();
|
||||||
@ -1874,6 +1875,7 @@ class Form
|
|||||||
$sql.=')';
|
$sql.=')';
|
||||||
}
|
}
|
||||||
$sql.= " ORDER BY pfp.ref_fourn DESC, pfp.quantity ASC";
|
$sql.= " ORDER BY pfp.ref_fourn DESC, pfp.quantity ASC";
|
||||||
|
$sql.= $db->plimit($limit);
|
||||||
|
|
||||||
// Build output string
|
// Build output string
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user