* Fix api for limit.
This commit is contained in:
@@ -80,6 +80,9 @@ class projectEntry extends entry
|
||||
$actions = $data->data->actions;
|
||||
$project->actions = $this->loadModel('action')->processActionForAPI($actions, (array)$data->data->users, $this->lang->project);
|
||||
break;
|
||||
case "builds":
|
||||
$project->builds = $this->loadModel('build')->getBuildPairs($this->param('productID', '0'), 'all', 'noempty,noterminate,nodone,withbranch', $projectID, 'project');
|
||||
break;
|
||||
case "dynamics":
|
||||
$dynamics = $data->data->dynamics;
|
||||
$project->dynamics = $this->loadModel('action')->processDynamicForAPI($dynamics);
|
||||
|
||||
@@ -24,7 +24,7 @@ class storiesEntry extends entry
|
||||
if(!$productID) return $this->sendError(400, 'Need product id.');
|
||||
|
||||
$control = $this->loadController('product', 'browse');
|
||||
$control->browse($productID, $this->param('branch', ''), $this->param('status', 'unclosed'), 0, $this->param('type', 'story'), $this->param('order', 'id_desc'), 0, $this->param('limit', 20), $this->param('page', 1));
|
||||
$control->browse($productID, $this->param('branch', ''), $this->param('status', 'unclosed'), 0, $this->param('type', 'story'), $this->param('order', 'id_desc'), 0, $this->param('limit', 500), $this->param('page', 1));
|
||||
|
||||
$data = $this->getData();
|
||||
if(!$data or !isset($data->status)) return $this->sendError(400, 'error');
|
||||
|
||||
@@ -55,8 +55,6 @@ $routes['/stories/:id/child'] = 'storyChild';
|
||||
$routes['/stories/:id/recall'] = 'storyRecall';
|
||||
$routes['/stories/:id/review'] = 'storyReview';
|
||||
|
||||
$routes['/module/:id/stories'] = 'moduleStories';
|
||||
|
||||
$routes['/products/:id/bugs'] = 'bugs';
|
||||
$routes['/projects/:id/bugs'] = 'projectBugs';
|
||||
$routes['/executions/:id/bugs'] = 'executionBugs';
|
||||
|
||||
Reference in New Issue
Block a user