Skip to content

Commit

Permalink
Fix for when no container id is set
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Jun 16, 2010
1 parent d8e9407 commit 84d7d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/page_helper.rb
Expand Up @@ -25,7 +25,7 @@ def end_user_table_for(tbl,options = {},&block)
extra_class = " " + options[:class]
end

div_id = options[:container_id] || "cmspara_#{paragraph.id}"
div_id = options[:container_id] || "cmspara_#{rnd.paragraph.id}"
concat(register_table_js(tbl,div_id,options[:refresh_url]))
concat("<form id='#{tbl.name}_update_form' action='' onsubmit='return false;'>") unless options[:no_form]
concat("<input type='hidden' name='page_connection_hash' value='#{tbl.page_connection_hash}' />") unless options[:no_form]
Expand Down

0 comments on commit 84d7d71

Please sign in to comment.