Bug 30585: Fix library options on table settings for course_reserves_table
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 6 Jun 2022 21:02:25 +0000 (21:02 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 9 Jun 2022 12:54:33 +0000 (09:54 -0300)
commit972330bc9e13e40564885bcf0ef1723abcc51772
tree0709660474a6265e000ce0d3bbc2d94fe65a1444
parented4250e7a9c8a83f8a538b5088f8867c630c72a1
Bug 30585: Fix library options on table settings for course_reserves_table

The table on  course-details.pl has columns for both home library and jolding library,
but course_reserves_table in the Table configuration admin area only has a
single toggle for 'library'.

Hiding 'library' hides the home library column. Anything after that is off by one.
Hiding 'staff_note' actually hides the holding library column, 'link' hides
Public note, etc.

To test:
- Add a course and some course reserves
- Go to table configuration and hide 'staff note'
- Look at the list of course reserves for your course
- Verify the wrong column was hidden
- Apply patch
- The configuration area now shows holding_library and home_library
  as separate options.
- Change the settings and verify everything now hides/displays correctly.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
admin/columns_settings.yml