diff options
author | Rémy Coutable <remy@rymai.me> | 2017-03-29 12:51:37 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-03-29 12:51:37 +0000 |
commit | 03c24c331853cc777f2f9d91de2edbe40019c3fb (patch) | |
tree | af8bda589e0bc8b34c504a514c134a88c66466dc /lib/api/v3 | |
parent | 03611b9167451608b99b2468186ff442e2c63919 (diff) | |
parent | c4be3460c202cf8c33429ddca8f0f8383907ac60 (diff) | |
download | gitlab-ce-03c24c331853cc777f2f9d91de2edbe40019c3fb.tar.gz |
Merge branch '23655-api-group-issues' into 'master'
Fix API group/issues default state filter
Closes #23655
See merge request !10253
Diffstat (limited to 'lib/api/v3')
-rw-r--r-- | lib/api/v3/issues.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/v3/issues.rb b/lib/api/v3/issues.rb index 54c6a8060b8..715083fc4f8 100644 --- a/lib/api/v3/issues.rb +++ b/lib/api/v3/issues.rb @@ -73,14 +73,14 @@ module API success ::API::Entities::Issue end params do - optional :state, type: String, values: %w[opened closed all], default: 'opened', + optional :state, type: String, values: %w[opened closed all], default: 'all', desc: 'Return opened, closed, or all issues' use :issues_params end get ":id/issues" do group = find_group!(params[:id]) - issues = find_issues(group_id: group.id, state: params[:state] || 'opened', match_all_labels: true) + issues = find_issues(group_id: group.id, match_all_labels: true) present paginate(issues), with: ::API::Entities::Issue, current_user: current_user end |