[Koha-bugs] [Bug 32593] New: Item search option location breaks with only one location defined

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 9 10:35:14 CET 2023


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

            Bug ID: 32593
           Summary: Item search option location breaks with only one
                    location defined
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Cataloging
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: katrin.fischer at bsz-bw.de
        QA Contact: testopia at bugs.koha-community.org
                CC: m.de.rooy at rijksmuseum.nl

When there is only one location (LOC) configured, the search option for
locations on item search is not generated correctly. It shows the 'all
locations' option and then 3 empty (no description) entries:


    <select id="location" name="location" multiple="multiple" size="4">
      <option value="" selected="selected">
        <span>All locations</span>
      </option>
        <option value="REF"></option>
        <option value="Reference"></option>
        <option value="Reference"></option>
    </select>

As soon as a second location is configured, the list will be generated
correctly.

To test:
* delete all LOC entried, but one, I left REF in the sandbox
* Go to item search
* Verify that only 'all locations displays' with 3 clickable empty entries
below
* Add another LOC entry
* Verify the list now works again

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


More information about the Koha-bugs mailing list