Set default limit to 100 on all rest api that list

This commit is contained in:
Laurent Destailleur
2017-10-22 15:42:19 +02:00
parent 98674f6d82
commit c6e5115d34
18 changed files with 161 additions and 161 deletions

View File

@@ -102,7 +102,7 @@ class MyObjectApi extends DolibarrApi
*
* @url GET /myobjects/
*/
function index($mode, $sortfield = "t.rowid", $sortorder = 'ASC', $limit = 0, $page = 0, $sqlfilters = '') {
function index($mode, $sortfield = "t.rowid", $sortorder = 'ASC', $limit = 100, $page = 0, $sqlfilters = '') {
global $db, $conf;
$obj_ret = array();