creating simple content model fails
Reported by joep | August 13th, 2010 @ 08:42 AM
The simple content module fails when creating a new field.
field_index should probably be converted to an integer somewhere.
Issue # 36 - reported
Reported By:
Administrative User
Location: cms:/website/simple_content/manage/new_field
Reported Type: auto
Behavior
A ActionView::TemplateError Exception occurred in manage#new_field
can't convert Fixnum into String
On line [#9](/projects/38599/tickets/9 "Ticket #9") of
vendor/modules/simple_content/app/views/simple_content/manage/_edit_field.html.erb
6:
7: <%= h fld.name %> (<%=
ContentModel.content_field(fld.field_module,fld.field_type)[:description].t
%>)
8:
9:
10:
11:
12:
vendor/modules/simple_content/app/views/simple_content/manage/_edit_field.html.erb:9:in
`+'
vendor/modules/simple_content/app/views/simple_content/manage/_edit_field.html.erb:9
vendor/modules/simple_content/app/controllers/simple_content/manage_controller.rb:86:in
`new_field'
* URL:
http://www.campcreektest.com:3000/website/simple_content/manage/new...
* Parameters: {"action"=>"new_field",
"authenticity_token"=>"OVoI9LNwBKdy3NiNb3/HkdXZP+tZkNNkjLsVQRVWlBY=",
"field_index"=>"1", "path"=>[],
"controller"=>"simple_content/manage",
"add_field"=>{"name"=>"tex",
"field_type"=>"content/core_field::string"}}
* Rails root: /Users/joe/src/Webiva
* User Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US;
rv:1.9.1.11) Gecko/20100701 Firefox/3.5.11* Process: 66347
* Server :
Comments and changes to this ticket
-
Pascal Rettig August 13th, 2010 @ 09:22 AM
- State changed from new to open
This is a regression caused by some fixes to the webform yesterday - we'll take a look
-
Pascal Rettig August 13th, 2010 @ 03:21 PM
- State changed from open to resolved
Fixed in commit 1e6edaa6cb0b7ea8c3181a13f791f9e745837e4c
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป