diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-17 16:52:39 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-17 16:52:39 +0000 |
commit | f23daffd7ddec4d359ded338a7033b0e133f71fa (patch) | |
tree | 2c3ef5353dd79e7b8e870779e17decebd6b4eaa8 /app | |
parent | 29413d6bee315990b1e7b8e40e28c5abd9d3fd21 (diff) | |
download | redmine-f23daffd7ddec4d359ded338a7033b0e133f71fa.tar.gz redmine-f23daffd7ddec4d359ded338a7033b0e133f71fa.zip |
Fixed: error on document list with a document without description.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@740 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/documents/_document.rhtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/documents/_document.rhtml b/app/views/documents/_document.rhtml index e1539b828..ddfdb9eec 100644 --- a/app/views/documents/_document.rhtml +++ b/app/views/documents/_document.rhtml @@ -1,3 +1,3 @@ <p><%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %><br /> -<% unless document.description.empty? %><%=h(truncate(document.description, 250)) %><br /><% end %> +<% unless document.description.blank? %><%=h(truncate(document.description, 250)) %><br /><% end %> <em><%= format_time(document.created_on) %></em></p>
\ No newline at end of file |