From 2ab4b20aaa652267bd8976be412bf8851340cbe9 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 10 May 2024 15:58:37 +0100 Subject: [PATCH] Bug 33737: (QA follow-up) Add missing column configuration I somehow missed commiting the column configuration bits. Signed-off-by: Katrin Fischer --- admin/columns_settings.yml | 17 +++++++++++++++++ .../prog/en/modules/members/moremember.tt | 4 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index a745675e46..41cfe87edb 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -1190,6 +1190,23 @@ modules: - columnname: status + bookings-table: + columns: + - + columnname: booking_id + is_hidden: 1 + - + columnname: title + - + columnname: item + - + columnname: start_date + - + columnname: end_date + - + columnname: actions + cannot_be_toggled: 0 + relatives-issues-table: columns: - diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 7ddd578fd8..05e68770d1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -758,6 +758,7 @@ table_settings_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'issues-table', 'json' ) | $raw %] table_settings_relatives_issues_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'relatives-issues-table', 'json' ) | $raw %] table_settings_holds_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'holds-table', 'json' ) | $raw %] + table_settings_bookings_table = [% TablesSettings.GetTableSettings( 'members', 'moremember', 'bookings-table', 'json' ) | $raw %] var bookings_table; $(document).ready(function() { @@ -796,7 +797,6 @@ "columns": [{ "data": "booking_id", "title": _("Booking ID"), - "visible": false }, { "data": "biblio.title", @@ -855,7 +855,7 @@ return result; } }] - }, [], 0, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } }); + }, table_settings_bookings_table, 0, { patron_id: "[% patron.borrowernumber | html %]", end_date: { ">=": today.toISOString() } }); }; }); }); -- 2.39.5