Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Forlorn EditableFormFields in database

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

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

Page: 1
Go to End
Author Topic: 1041 Views
  • xmedeko
    Avatar
    Community Member
    94 Posts

    Forlorn EditableFormFields in database Link to this post

    Hi,

    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().

    Cheers
    Andy

  • xmedeko
    Avatar
    Community Member
    94 Posts

    Re: Forlorn EditableFormFields in database Link to this post

    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.

    1041 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.