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

ManyManyComplexTableField Doesn't Remember Which Boxes Are Checked


Reply


7 Posts   910 Views

Avatar
Ben Gribaudo

Community Member, 181 Posts

16 June 2009 at 8:02am

Hello,

ManyManyComplexTableField (MMCTF) doesn't seem to remember which items are checked. The MMCTF grid will show up in the CMS admin interface with check boxes by each item. After checking some items, saving the data item, and reloading it in the admin interface, no check boxes are checked.

To make sure that my custom code was not causing the problem, I copied and pasted the many-to-many example code from: http://doc.silverstripe.org/doku.php?id=tutorial:5-dataobject-relationship-management#project_-_module_relation Still no go.

Any ideas on why relation check boxes aren't saving?

Thanks,
Ben

Avatar
SilverRay

Community Member, 167 Posts

16 June 2009 at 8:40am

I came across this problem in the past and never discovered a real solution. You can look up some of my posts related to this. I think it might be a javascript problem related to how the CTF is managed in the back-end. What version of ss are you using?

Avatar
Ben Gribaudo

Community Member, 181 Posts

16 June 2009 at 8:53am

trunk

Avatar
SilverRay

Community Member, 167 Posts

16 June 2009 at 8:57am

Hmm, I would say it would have been solved by now in the trunk version. In my experience, the problem does not always occur, only sometimes. I tried a lot of things, but never got around solving it I'm afraid. It's not a problem clients like, btw... Did you try checking/unchecking in different browsers, on different platforms?

Avatar
Ben Gribaudo

Community Member, 181 Posts

17 June 2009 at 4:55am

Edited: 17/06/2009 4:55am

Hi SilverRay,

I think I found a solution to this problem. It's contained in the patch attached to [url=http://open.silverstripe.org/ticket/4250]ticket 4250[/url].

Sincerely,
Ben

Avatar
SilverRay

Community Member, 167 Posts

17 June 2009 at 5:26am

Very interesting Ben, thanks! I will try also and see what happens...

Avatar
Ben Gribaudo

Community Member, 181 Posts

17 June 2009 at 5:49am

Please let me know!