From: Jean-Philippe Lang Date: Mon, 17 Sep 2007 16:52:39 +0000 (+0000) Subject: Fixed: error on document list with a document without description. X-Git-Tag: 0.6.0~142 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f23daffd7ddec4d359ded338a7033b0e133f71fa;p=redmine.git 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 --- 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 @@

<%= link_to h(document.title), :controller => 'documents', :action => 'show', :id => document %>
-<% unless document.description.empty? %><%=h(truncate(document.description, 250)) %>
<% end %> +<% unless document.description.blank? %><%=h(truncate(document.description, 250)) %>
<% end %> <%= format_time(document.created_on) %>

\ No newline at end of file