From ef60926390938db4e62baacaaabb4b2b08d27c29 Mon Sep 17 00:00:00 2001 From: Petro Vashchuk Date: Wed, 17 Dec 2025 16:50:49 +0200 Subject: [PATCH] Bug 41468: Don't force show checkin column if user wants it hidden If user hides the "Check in" column in the borrower's "Checkouts" table it should stay hidden for the user unless in settings cannot_be_toggled is set to true for the checkin column. Steps to reproduce: 1. Go to the borrower who have some checkouts, and open the checkout's table. 2. Check your admin/columns_settings, you can do that by using the top right Configure button. Check that in issues-table, column checkin has "Cannot be toggled" toggled off. 3. Back at the borrower's page, using the Columns dropdown menu, hide "Check in" column. 4. Refresh the page. The column will be visible anyway. 5. Apply the patch. 6. Force refresh the page, and hide "Check in" column again. 7. Refresh the page. This time it should stay hidden. 8. Go back to admin/columns_settings and toggle on "Cannot be toggled" for checkin column. 9. Refresh borrower's page again, see that "Check in" column is visible again. --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index 222b39a7811..00b1d2bb918 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -51,7 +51,10 @@ function LoadIssuesTable() { checkin_column.is_hidden = 0; } renew_column.force_visibility = 1; - checkin_column.force_visibility = 1; + + if (checkin_column.cannot_be_toggled) { + checkin_column.force_visibility = 1; + } let claims_returned_column = table_settings_issues_table.columns.find( c => c.columnname == "claims_returned" -- 2.51.1