Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Problem: in admin/RelatedContent doesn't work the unselected checkbox

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

Page: 1
Go to End
Author Topic: 140 Views
  • r4nm4
    Avatar
    Community Member
    4 Posts

    Problem: in admin/RelatedContent doesn't work the unselected checkbox Link to this post

    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
  • r4nm4
    Avatar
    Community Member
    4 Posts

    Re: Problem: in admin/RelatedContent doesn't work the unselected checkbox Link to this post

    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!

  • r4nm4
    Avatar
    Community Member
    4 Posts

    Re: Problem: in admin/RelatedContent doesn't work the unselected checkbox Link to this post

    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

    140 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.