Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Forlorn EditableFormFields in database

Go to End

2 Posts   1246 Views


Community Member, 94 Posts

6 June 2007 at 4:01pm

Edited: 06/06/2007 4:33pm


if you create a fresh new contact form in CMS, do not save it, add some form fields, do not save it, and delete the page. Then, the created form fields in the MySQL table `EditableFormFields` have `ParentID` == 0. They are not assigned to any page, cannot be deleted from CMS.

Maybe the addfield() method in the FieldEditor class should not write the created field. Then, client javascript has to make some unique ID, ID < 0, and then the fields (with ID < 0) should be created and written in the saveInto().



Community Member, 94 Posts

6 June 2007 at 5:22pm

Edited: 07/06/2007 2:30pm

P.S. There's more of weird behaviour of the FieldEditor:

- remove some fields and go to another page. No 'Unsaved Changes' dialog is shown and you can jump to another page directly.

- add some new fields, go to another page and choose 'Discard changes' in the 'Unsaved Changes' dialog. When you return, you see, that changes has not been discarded (i.e., the added fields are still there)

- 'Cancel draft changes' function (aka rollback), does not work.