summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-02 11:36:40 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-02 11:36:40 +0000
commitda140238e778abb2b4dabe8c3b1d8167ffca3cad (patch)
treeecf019f95887c85bd6e0018623501b18d819d4a1
parent20f3dde0dd38a9ea103e1befce356175275051d3 (diff)
downloadredmine-da140238e778abb2b4dabe8c3b1d8167ffca3cad.tar.gz
redmine-da140238e778abb2b4dabe8c3b1d8167ffca3cad.zip
code layout clean up issues helper
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8025 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/helpers/issues_helper.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index 9c1407145..e1c8e6fdf 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -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