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

            Bug ID: 43370
           Summary: Holdings table displays a user-selected column on the
                    pages where it is empty
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Staff interface
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]
  Target Milestone: ---

On the holdings table of the catalogue detail page, a column that has no value
on the current page is hidden. update_columns_visibility() applies the user's
column visibility choices after that pass, so a column the user turned on is
displayed, empty, on the pages where it has no value.

To reproduce:
1. Have a record with more than 20 items, e.g. biblionumber=4:
     kj build 42 items with biblionumber=4
2. Give a call number to the items of the first page only.
     UPDATE items SET itemcallnumber = NULL WHERE biblionumber = 4;
     UPDATE items SET itemcallnumber = CONCAT('CN-', itemnumber)
       WHERE biblionumber = 4 ORDER BY itemnumber LIMIT 20;
3. Go to /cgi-bin/koha/catalogue/detail.pl?biblionumber=4
4. In the column visibility menu, turn "Call number" off then on again.
   => The column is displayed on the first page, as expected.
5. Go to page 2.
   => The "Call number" column is displayed and empty for all rows.
      It should be hidden.
6. Go back to page 1.
   => The column is displayed again (correct).

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to