diff options
author | Go MAEDA <maeda@farend.jp> | 2021-04-19 09:04:24 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-04-19 09:04:24 +0000 |
commit | 9055e5dfe50394cdeec36fc12d06d9c1ed736c41 (patch) | |
tree | 764704a33f9a9f2c5eb3e1f64262b68f283a8bd6 /app/controllers | |
parent | f9e937f85af2091e36f264a1d21ccc10d5cf65b5 (diff) | |
download | redmine-9055e5dfe50394cdeec36fc12d06d9c1ed736c41.tar.gz redmine-9055e5dfe50394cdeec36fc12d06d9c1ed736c41.zip |
Include new statuses allowed by workflow in Issues REST API (#24976).
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@20951 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/issues_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index c994862e1..887bcd4bb 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -112,6 +112,7 @@ class IssuesController < ApplicationController render :template => 'issues/show' end format.api do + @allowed_statuses = @issue.new_statuses_allowed_to(User.current) @changesets = @issue.changesets.visible.preload(:repository, :user).to_a @changesets.reverse! if User.current.wants_comments_in_reverse_order? end |