Skip to content

Commit

Permalink
Fixed paragraph name bug w/ overlapping names
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed May 1, 2010
1 parent 1fe07b7 commit 5a249c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/edit/_paragraph.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<img src='<%= theme_src("/images/icons/paragraph.gif") %>' class='cms_paragraph_icon' style='padding:0px;margin:0px;' border='0' onclick='cmsEdit.selectParagraph(<%= para_index %>)' />
<a href='javascript:void(0);' onclick='cmsEdit.showMenu(<%= para_index %>);' class='cms_ajax_link'>
<% if para.content_publication_id.to_i > 0 %>
<%= @paragraph_hash["#{para.display_type}_#{para.content_publication_id}"][2] %>
<%= @paragraph_hash["#{para.display_module}_#{para.display_type}_#{para.content_publication_id}"][2] %>
<% else %>
<%= @paragraph_hash[para.display_type] ? @paragraph_hash[para.display_type][2].t : 'Invalid Paragraph Type' %>
<%= @paragraph_hash["#{para.display_module}_#{para.display_type}"] ? @paragraph_hash["#{para.display_module}_#{para.display_type}"][2].t : 'Invalid Paragraph Type' %>
<% end -%>
</a>
</div>
Expand Down

0 comments on commit 5a249c5

Please sign in to comment.