Commit 01bea0025332fc0fcaade123832608feb0acc6d4

Authored by Victor Costa
1 parent 084b93c0

Fix bug with the new image field at suggest article

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
app/views/shared/_lead_and_body.rhtml
@@ -14,8 +14,10 @@ @@ -14,8 +14,10 @@
14 14
15 <div class='article-lead' id="article-lead-<%=lead_id.to_s%>"> 15 <div class='article-lead' id="article-lead-<%=lead_id.to_s%>">
16 16
17 - <% fields_for 'article[image_builder]', @article.image do |i| %>  
18 - <%= file_field_or_thumbnail(_('Image:'), @article.image, i) %> 17 + <% if @article %>
  18 + <% fields_for 'article[image_builder]', @article.image do |i| %>
  19 + <%= file_field_or_thumbnail(_('Image:'), @article.image, i) %>
  20 + <% end %>
19 <% end %> 21 <% end %>
20 22
21 <% if f %> 23 <% if f %>