|
|
@@ -170,7 +170,8 @@ module IssuesHelper |
|
|
|
value = format_date(detail.value.to_date) if detail.value |
|
|
|
old_value = format_date(detail.old_value.to_date) if detail.old_value |
|
|
|
|
|
|
|
when ['project_id', 'status_id', 'tracker_id', 'assigned_to_id', 'priority_id', 'category_id', 'fixed_version_id'].include?(detail.prop_key) |
|
|
|
when ['project_id', 'status_id', 'tracker_id', 'assigned_to_id', |
|
|
|
'priority_id', 'category_id', 'fixed_version_id'].include?(detail.prop_key) |
|
|
|
value = find_name_by_reflection(field, detail.value) |
|
|
|
old_value = find_name_by_reflection(field, detail.old_value) |
|
|
|
|
|
|
@@ -197,7 +198,8 @@ module IssuesHelper |
|
|
|
when 'attachment' |
|
|
|
label = l(:label_attachment) |
|
|
|
end |
|
|
|
call_hook(:helper_issues_show_detail_after_setting, {:detail => detail, :label => label, :value => value, :old_value => old_value }) |
|
|
|
call_hook(:helper_issues_show_detail_after_setting, |
|
|
|
{:detail => detail, :label => label, :value => value, :old_value => old_value }) |
|
|
|
|
|
|
|
label ||= detail.prop_key |
|
|
|
value ||= detail.value |