summaryrefslogtreecommitdiffstats
path: root/app/helpers/issues_helper.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-02-01 04:22:22 +0000
committerGo MAEDA <maeda@farend.jp>2021-02-01 04:22:22 +0000
commit097e75987b0c9f2dc7334aa1c23a5b3ae8b29163 (patch)
tree77cc8223bb1f190fd209d13a86cafe8ffe98eaa7 /app/helpers/issues_helper.rb
parenta2349681ee97fee56a6854146546d178d1cf4fd5 (diff)
downloadredmine-097e75987b0c9f2dc7334aa1c23a5b3ae8b29163.tar.gz
redmine-097e75987b0c9f2dc7334aa1c23a5b3ae8b29163.zip
Fix project selector on global new issue page not showing all visible projects (#33419).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20733 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r--app/helpers/issues_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 20a708ca0..566cd1d53 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -746,7 +746,7 @@ module IssuesHelper
def projects_for_select(issue)
if issue.parent_issue_id.present?
issue.allowed_target_projects_for_subtask(User.current)
- elsif issue.new_record? && !issue.copy?
+ elsif @project && issue.new_record? && !issue.copy?
issue.allowed_target_projects(User.current, 'descendants')
else
issue.allowed_target_projects(User.current)