diff options
author | Go MAEDA <maeda@farend.jp> | 2022-11-18 08:17:50 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-11-18 08:17:50 +0000 |
commit | 0f2378c121ffe0987e1b998d4fb464eb8d813628 (patch) | |
tree | 3e3ec8e7cc25cc642793f59caa3852f0f5588b26 /app/helpers/issues_helper.rb | |
parent | 44c72fe7b0ee1921bc00c16ee1f1a328b1ab82e0 (diff) | |
download | redmine-0f2378c121ffe0987e1b998d4fb464eb8d813628.tar.gz redmine-0f2378c121ffe0987e1b998d4fb464eb8d813628.zip |
Reverts r21958 and r21959 (#1739).
git-svn-id: https://svn.redmine.org/redmine/trunk@21960 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r-- | app/helpers/issues_helper.rb | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index abefd7b28..dfe577650 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -534,7 +534,7 @@ module IssuesHelper old_value = format_date(detail.old_value.to_date) if detail.old_value when 'project_id', 'status_id', 'tracker_id', 'assigned_to_id', - 'priority_id', 'category_id', 'fixed_version_id', 'author_id' + 'priority_id', 'category_id', 'fixed_version_id' value = find_name_by_reflection(field, detail.value) old_value = find_name_by_reflection(field, detail.old_value) @@ -778,23 +778,4 @@ module IssuesHelper projects end end - - def author_options_for_select(issue, project) - users = issue.assignable_users.select {|m| m.is_a?(User) && m.allowed_to?(:add_issues, project) } - - if issue.new_record? - if users.include?(User.current) - principals_options_for_select(users, issue.author) - else - principals_options_for_select([User.current] + users) - end - elsif issue.persisted? - if users.include?(issue.author) - principals_options_for_select(users, issue.author) - else - author_principal = Principal.find(issue.author_id) - principals_options_for_select([author_principal] + users, author_principal) - end - end - end end |