@@ -57,7 +57,7 class Journal < ActiveRecord::Base | |||||
57 | # Returns journal details that are visible to user |
|
57 | # Returns journal details that are visible to user | |
58 | def visible_details(user=User.current) |
|
58 | def visible_details(user=User.current) | |
59 | details.select do |detail| |
|
59 | details.select do |detail| | |
60 |
if detail.property == 'cf' |
|
60 | if detail.property == 'cf' | |
61 | field_id = detail.prop_key |
|
61 | field_id = detail.prop_key | |
62 | field = CustomField.find_by_id(field_id) |
|
62 | field = CustomField.find_by_id(field_id) | |
63 | field && field.visible_by?(project, user) |
|
63 | field && field.visible_by?(project, user) |
General Comments 0
You need to be logged in to leave comments.
Login now