From 7e9771e0c9d13f7f7d5c36a5d761663a684df699 Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Mon, 9 Jan 2023 16:38:47 +0000 Subject: [PATCH] Bug 32510: Patrons - 'New list' option is not available when too many patron's lists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's impossible to add a patron to a new list when Koha has more than 35 patrons’ lists. This behaviour affects the 'add patron to list' drop-down menu in the patron search page (Patrons module > patron search > add to patron list button ). Koha will show a drop-down menu without the 'New list' option being visible, so you can't create more lists. This patch allows scrolling the drop-down menu when there are too many lists. To reproduce: 1. Go to Patron module 2. Search for patrons 3. Select few accounts 4. Click on 'add to patron list', then choose 'New list' If your Koha has a little number of patrons’ lists, add some more until you've reached a total of 35 lists (or more depending on your sreen resolution). 5. When you've reached 35 lists, try to add a patron to a new list --> the 'new list' option is no longer available after 35 lists 6. Apply the patch 7. compile the .scss file 'yarn build --view' 8. Clear your navigator caches 9. repeat step 1, 2, 3, 4 11. You can now scroll drop-down menu and see The 'New list' option --- koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index 3140444640..020551f755 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1997,6 +1997,11 @@ li { padding: 5px 25em 0 0; } } + + .dropdown-menu { + max-height: 50vh; + overflow-y: auto; + } } #patron_search_selected { -- 2.34.1