diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-09-20 09:56:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-09-20 09:56:06 +0000 |
commit | 52a6b0a21e5e28da4ed590383ae778c306cfaf1b (patch) | |
tree | a1981b858f48b25546bedc22e9994da0cad914a4 /app | |
parent | 41cbd239c44eb8f702d04a8b0ba25dfc381483ad (diff) | |
download | redmine-52a6b0a21e5e28da4ed590383ae778c306cfaf1b.tar.gz redmine-52a6b0a21e5e28da4ed590383ae778c306cfaf1b.zip |
Fixed: Custom values with a nil value cause error on (project|account)/show (#3705).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2894 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/account/show.rhtml | 2 | ||||
-rw-r--r-- | app/views/projects/show.rhtml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/account/show.rhtml b/app/views/account/show.rhtml index 24106ca01..8816f108e 100644 --- a/app/views/account/show.rhtml +++ b/app/views/account/show.rhtml @@ -10,7 +10,7 @@ <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li> <% end %> <% for custom_value in @custom_values %> - <% if !custom_value.value.empty? %> + <% if !custom_value.value.blank? %> <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> <% end %> <% end %> diff --git a/app/views/projects/show.rhtml b/app/views/projects/show.rhtml index 250e8512f..a83d98fe1 100644 --- a/app/views/projects/show.rhtml +++ b/app/views/projects/show.rhtml @@ -9,7 +9,7 @@ <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li> <% end %> <% @project.custom_values.each do |custom_value| %> - <% if !custom_value.value.empty? %> + <% if !custom_value.value.blank? %> <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> <% end %> <% end %> |