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

Problem: in admin/RelatedContent doesn't work the unselected checkbox


Go to End


3 Posts   745 Views

Avatar
r4nm4

Community Member, 4 Posts

9 September 2013 at 11:35am

Hi Staff,
first of all, I'm so sorry for the stupid question, but where find the version of SilverStripe?
I give a old SilverStripe project and I necessary to fix a little error and continue with some customization.

My problem is:
In the Admin / RelatedContent (TAB) when I unselect the product and click on "save and publich",
the CMS doesn't save my "unselected" checkbox.

I'm sorry, but it's difficult explain. I created a 1 images to explain the error :)
Please... in your experiences... which file i can check for fix the error???

Thank you very much for the consideration :)
G'Day

Avatar
r4nm4

Community Member, 4 Posts

9 September 2013 at 2:29pm

The problem is in this part of HTML code:

<input id="Form_EditForm_RelatedPages_CheckedList" type="hidden" value=",334,306,306," name="RelatedPages[selected]">
The JS control... don't check the duplicate ID.

Where I can fix this part of code???

Thank you!

Avatar
r4nm4

Community Member, 4 Posts

9 September 2013 at 5:17pm

FIXED!
The problem is in the file dataobject_manager.js

In the IF condition... "if($container.hasClass('RelationDataObjectManager')) {"
I added the control to check the duplicate string.
And... I changed all OBJ.attr('value', STRING) IN OBJ.val(STRING).

Cheers :)