Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » ModelAdmin – breaks after save

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 847 Views
  • joelg
    Avatar
    Community Member
    129 Posts

    ModelAdmin – breaks after save Link to this post

    Hi there

    I'm using SilverStripe 2.3.5 and modelAdmin, however there is a weird bug when I save a record. After saving I can't create a new record. Instead, the form shows up in the browser without css attached to it.

    Any ideas what could cause this?

    Joel

  • altima
    Avatar
    Community Member
    3 Posts

    Re: ModelAdmin – breaks after save Link to this post

    hi

    I have the same problem. It seams to be an javascript erro, but i can't find anything....

    Enno

  • joelg
    Avatar
    Community Member
    129 Posts

    Re: ModelAdmin – breaks after save Link to this post

    Hi Altima

    It's a problem with tinyMCE. I simply solved it by commenting out this line in modeladmin.js, since I don't have any htmlTextfields:

    tinyMCE.execCommand('mceRemoveControl', false, $(this).attr('id'));

    Anyway, I think there is a patch for this somewhere. Just search for "modeladmin tinymce". I just couldn't get the patch to work

    Another error that crashed my saving was an e-mail field I couln't get to work either. I altered this to a normal textfield and now modeladmin works for me.

    Joel

    847 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.