tasfe / silverstripe-ecommerce

Automatically exported from code.google.com/p/silverstripe-ecommerce
0 stars 0 forks source link

collateDataFields receives duplicate fields #364

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
eCommerce version affected: r2753
SilverStripe version: 2.4.7
Browser/Operating System used: OS X Lion

What steps will reproduce the problem?
1. Go to /admin
2. Click on Products
3. Click on Create product

What is the expected output? What do you see instead?

Should load the product creation screen. Red alert appears instead, with this 
message:

Error: "collateDataFields() I noticed that a field called 'Priority' appears 
twice in your form: 'Form_AddForm'. One is a 'DropdownField' and the other is a 
'DropdownField'" at line 140 of /sapphire/forms/CompositeField.php

Original issue reported on code.google.com by cxspon...@gmail.com on 31 May 2012 at 6:37

GoogleCodeExporter commented 9 years ago
Same issue appears when attempting to edit a product. How did I create a 
product, well I used the /dev/ecommerce tools to create default products. They 
worked, but I was unable to edit them.

Original comment by cxspon...@gmail.com on 31 May 2012 at 6:50

GoogleCodeExporter commented 9 years ago
you can edit the products in the pages section of the CMS?  I am fixing this 
now.

THANK YOU FOR REPORTING!

Original comment by nfranc...@gmail.com on 5 Jun 2012 at 6:28

GoogleCodeExporter commented 9 years ago
this should be fixed now... I tried it and I did not get an error... Please let 
me know if you can not fix this error by upgrading to a later version.

Original comment by nfranc...@gmail.com on 5 Jun 2012 at 6:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The error says something about a priority field:

Error: "collateDataFields() I noticed that a field called 'Priority' appears 
twice in your form: 'Form_AddForm'. One is a 'DropdownField' and the other is a 
'DropdownField'" at line 140 of /sapphire/forms/CompositeField.php

Can you check if you have used this field anywhere or if it is mentioned 
anywhere in the code (do you know how to do a multi-file search?)

Original comment by nfranc...@gmail.com on 7 Jun 2012 at 7:32

GoogleCodeExporter commented 9 years ago
Hi Ryan

Do you have any further information on this error?

Original comment by nfranc...@gmail.com on 10 Jun 2012 at 3:44

GoogleCodeExporter commented 9 years ago

Original comment by nfranc...@gmail.com on 16 Jul 2012 at 10:42