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

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


Reply


3 Posts   200 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

Attached Files
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 :)