[Koha-bugs] [Bug 32926] Cannot expand or collapse some System preference sections after a search

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 9 17:30:01 CET 2023


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

--- Comment #2 from Andreas Roussos <a.roussos at dataly.gr> ---
Created attachment 146440
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=146440&action=edit
Bug 32926: Assign unique ids to <h3> elements

If you perform a System preferences search for a common word
such as "type", you lose the ability to expand or collapse some
sections. In particular, you cannot expand/collapse the sections
with names that appear more than once in the results page.
All sections except the first one in each group of duplicates
are affected by this. See https://imgur.com/a/NSslIcV for a demo.

This patch fixes that by prepending the <h3> ids with the
top-level System preference section name to make them unique.

Test plan:

1) Perform a System preferences search for a common word such
   as "type" or "log". In the results page, the "Policy" section
   will appear more than once. Now try to expand/collapse any
   "Policy" section but the first one. It won't work, only the
   first "Policy" section is toggled.
2) Apply this patch and refresh the page.
3) This time you should be able to expand or collapse all of
   the available system preference sections.

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


More information about the Koha-bugs mailing list