[Koha-bugs] [Bug 28407] New: CollapseFieldsPatronAddForm creates problems with hidden elements in Patron restrictions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 20 21:13:35 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28407

            Bug ID: 28407
           Summary: CollapseFieldsPatronAddForm creates problems with
                    hidden elements in Patron restrictions
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Patrons
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: cbrannon at cdalibrary.org
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com

If you use CollapseFieldsPatronAddForm to collapse Patron restrictions, it will
cause hidden elements within to be out of sync.  I've used the following to
compensate for this flaw:

    //Fix expanded restriction form with nested collapsed section
    $('#pat_memberentrygen #memberentry_restrictions').wrapInner('<div
id="restrictionContainer" style="display:none;"></div>');
    $('#pat_memberentrygen #restrictionContainer').children().show();
    $('#pat_memberentrygen #manual_restriction_form').children().show();
    $('#pat_memberentrygen
#memberentry_restrictions').prepend($('#restrictions_lgd'));
    $('#pat_memberentrygen #manual_restriction_form').hide();

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list