summaryrefslogtreecommitdiffstats
path: root/app/views/account
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-09-20 09:56:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-09-20 09:56:06 +0000
commit52a6b0a21e5e28da4ed590383ae778c306cfaf1b (patch)
treea1981b858f48b25546bedc22e9994da0cad914a4 /app/views/account
parent41cbd239c44eb8f702d04a8b0ba25dfc381483ad (diff)
downloadredmine-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/views/account')
-rw-r--r--app/views/account/show.rhtml2
1 files changed, 1 insertions, 1 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 %>