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.

General Questions /

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

ModelAdmin – breaks after save


Reply


3 Posts   926 Views

Avatar
joelg

Community Member, 129 Posts

12 February 2010 at 12:07pm

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

Avatar
altima

Community Member, 3 Posts

28 February 2010 at 10:53pm

hi

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

Enno

Avatar
joelg

Community Member, 129 Posts

28 February 2010 at 11:02pm

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