summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-03-03 22:38:03 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-03-03 22:38:03 +0000
commit98aafd06bacea24fbccef0b1f3a20c53067513d3 (patch)
tree66e4987aca7ce6e2c8ce5117a0aa89c9e91466f2 /app
parent193bf7db65fb9b4432a98613831fafbda1766ca0 (diff)
downloadredmine-98aafd06bacea24fbccef0b1f3a20c53067513d3.tar.gz
redmine-98aafd06bacea24fbccef0b1f3a20c53067513d3.zip
Fix rubocop warnings on 5.0-stable branch.
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22763 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 7603198d4..950cc4c48 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -296,6 +296,7 @@ module ApplicationHelper
end
when 'CustomValue', 'CustomFieldValue'
return "" unless object.customized&.visible?
+
if object.custom_field
f = object.custom_field.format.formatted_custom_value(self, object, html)
if f.nil? || f.is_a?(String)