diff options
-rw-r--r-- | app/models/journal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb index 2e3aa7f9f..d7712fa1f 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -57,7 +57,7 @@ class Journal < ActiveRecord::Base # Returns journal details that are visible to user def visible_details(user=User.current) details.select do |detail| - if detail.property == 'cf' + if detail.property == 'cf' field_id = detail.prop_key field = CustomField.find_by_id(field_id) field && field.visible_by?(project, user) |