magiclabs/alchemy_cms — Issue #189: Copying Element living in a Cell throws error
Author: robinboening
Created: 2012-02-20 19:22:04+00:00
State: open
Labels: bug

What I did:

1.) Copied Element that lives in a cell.
2.) Clicked button "new element".
3.) Got error 500, trace below:

+++++++++ Error: String can't be coerced into Fixnum +++++++++++++

/Users/robin/.rvm/gems/ruby-1.9.3-p0@rails3.1/bundler/gems/alchemy_cms-9e936ca8f9f7/app/helpers/alchemy/admin/elements_helper.rb:110:in `+'
/Users/robin/.rvm/gems/ruby-1.9.3-p0@rails3.1/bundler/gems/alchemy_cms-9e936ca8f9f7/app/helpers/alchemy/admin/elements_helper.rb:110:in `element_array_for_options'
/Users/robin/.rvm/gems/ruby-1.9.3-p0@rails3.1/bundler/gems/alchemy_cms-9e936ca8f9f7/app/helpers/alchemy/admin/elements_helper.rb:88:in `block (2 levels) in grouped_elements_for_select'
/Users/robin/.rvm/gems/ruby-1.9.3-p0@rails3.1/bundler/gems/alchemy_cms-9e936ca8f9f7/app/helpers/alchemy/admin/elements_helper.rb:87:in `map'
/Users/robin/.rvm/gems/ruby-1.9.3-p0@rails3.1/bundler/gems/alchemy_cms-9e936ca8f9f7/app/helpers/alchemy/admin/elements_helper.rb:87:in `block in grouped_elements_for_select'
/Users/robin/.rvm/gems/ruby-1.9.3-p0@rails3.1/bundler/gems/alchemy_cms-9e936ca8f9f7/app/helpers/alchemy/admin/elements_helper.rb:83:in `each'
/Users/robin/.rvm/gems/ruby-1.9.3-p0@rails3.1/bundler/gems/alchemy_cms-9e936ca8f9f7/app/helpers/alchemy/admin/elements_helper.rb:83:in `grouped_elements_for_select'
/Users/robin/.rvm/gems/ruby-1.9.3-p0@rails3.1/bundler/gems/alchemy_cms-9e936ca8f9f7/app/helpers/alchemy/admin/base_helper.rb:308:in `clipboard_select_tag'
/Users/robin/.rvm/gems/ruby-1.9.3-p0@rails3.1/bundler/gems/alchemy_cms-9e936ca8f9f7/app/views/alchemy/admin/elements/new.html.erb:21:in `block in ___sers_robin__rvm_gems_ruby_______p__rails____bundler_gems_alchemy_cms__e___ca_f_f__app_views_alchemy_admin_elements_new_html_erb__3673726112488544001_70175576420560'