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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

ModelAdmin – breaks after save


Go to End


3 Posts   1478 Views

Avatar
joelg

Community Member, 134 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, 134 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