Fix missing limit
This commit is contained in:
parent
c891196b5b
commit
388ba8f399
@ -28,13 +28,13 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/multicurrency.lib.php';
|
|||||||
*/
|
*/
|
||||||
class MultiCurrencies extends DolibarrApi
|
class MultiCurrencies extends DolibarrApi
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
global $db, $conf;
|
global $db;
|
||||||
|
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,16 +43,17 @@ class MultiCurrencies extends DolibarrApi
|
|||||||
*
|
*
|
||||||
* Get a list of Currencies
|
* Get a list of Currencies
|
||||||
*
|
*
|
||||||
* @param string $sortfield Sort field
|
* @param string $sortfield Sort field
|
||||||
* @param string $sortorder Sort order
|
* @param string $sortorder Sort order
|
||||||
* @param string $sqlfilters Other criteria to filter answers separated by a comma. Syntax example "(t.product_id:=:1) and (t.date_creation:<:'20160101')"
|
* @param int $limit Limit for list
|
||||||
* @return array Array of warehouse objects
|
* @param string $sqlfilters Other criteria to filter answers separated by a comma. Syntax example "(t.product_id:=:1) and (t.date_creation:<:'20160101')"
|
||||||
|
* @return array Array of warehouse objects
|
||||||
*
|
*
|
||||||
* @throws RestException
|
* @throws RestException
|
||||||
*/
|
*/
|
||||||
public function index($sortfield = "t.rowid", $sortorder = 'ASC', $sqlfilters = '')
|
public function index($sortfield = "t.rowid", $sortorder = 'ASC', $limit = 100, $sqlfilters = '')
|
||||||
{
|
{
|
||||||
global $db, $conf;
|
global $db;
|
||||||
|
|
||||||
$obj_ret = array();
|
$obj_ret = array();
|
||||||
|
|
||||||
@ -332,8 +333,8 @@ class MultiCurrencies extends DolibarrApi
|
|||||||
/**
|
/**
|
||||||
* Clean sensible object datas
|
* Clean sensible object datas
|
||||||
*
|
*
|
||||||
* @param MultiCurrency $object Object to clean
|
* @param MultiCurrency $object Object to clean
|
||||||
* @return Object Object with cleaned properties
|
* @return Object Object with cleaned properties
|
||||||
*/
|
*/
|
||||||
protected function _cleanObjectDatas($object)
|
protected function _cleanObjectDatas($object)
|
||||||
{
|
{
|
||||||
@ -355,8 +356,8 @@ class MultiCurrencies extends DolibarrApi
|
|||||||
/**
|
/**
|
||||||
* Clean sensible MultiCurrencyRate object datas
|
* Clean sensible MultiCurrencyRate object datas
|
||||||
*
|
*
|
||||||
* @param MultiCurrencyRate $object Object to clean
|
* @param MultiCurrency $object Object to clean
|
||||||
* @return Object Object with cleaned properties
|
* @return Object Object with cleaned properties
|
||||||
*/
|
*/
|
||||||
protected function _cleanObjectDatasRate($object)
|
protected function _cleanObjectDatasRate($object)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user