summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-02-03 00:58:04 +0000
committerGo MAEDA <maeda@farend.jp>2023-02-03 00:58:04 +0000
commite6c2bea2f9862e0a00c9006ef32a1c4f2a8f5ae1 (patch)
tree45ff1f4d206454957db4ccb1bc15236d282fcac3 /app
parenta19978cf83271f0f0c0603a6894c2102018cf63f (diff)
downloadredmine-e6c2bea2f9862e0a00c9006ef32a1c4f2a8f5ae1.tar.gz
redmine-e6c2bea2f9862e0a00c9006ef32a1c4f2a8f5ae1.zip
Merged r22085 from trunk to 5.0-stable (#38217).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22089 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/issues_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index ca1b2760f..541a6f5af 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -693,8 +693,8 @@ module IssuesHelper
def issue_history_tabs
tabs = []
if @journals.present?
- journals_without_notes = @journals.select{|value| value.notes.blank?}
- journals_with_notes = @journals.reject{|value| value.notes.blank?}
+ has_details = @journals.any? {|value| value.details.present?}
+ has_notes = @journals.any? {|value| value.notes.present?}
tabs <<
{
:name => 'history',
@@ -703,7 +703,7 @@ module IssuesHelper
:partial => 'issues/tabs/history',
:locals => {:issue => @issue, :journals => @journals}
}
- if journals_with_notes.any?
+ if has_notes
tabs <<
{
:name => 'notes',
@@ -711,7 +711,7 @@ module IssuesHelper
:onclick => 'showIssueHistory("notes", this.href)'
}
end
- if journals_without_notes.any?
+ if has_details
tabs <<
{
:name => 'properties',