From e688ab29a00e1dd4f4eb69cbc4acdd008fa9196f Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 22 Aug 2022 08:15:34 +0100 Subject: [PATCH] Bug 31435: Tie 'Configure' to table_settings This patch adds a check for table_settings to prevent the display of 'Configure this table' when table settings are not passed to the datatable wrapper. --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 0aa6e28a16..49c5eb2adc 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -817,7 +817,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { } ); - if ( CAN_user_parameters_manage_column_config ) { + if ( table_settings && CAN_user_parameters_manage_column_config ) { settings[ "buttons" ].push( { className: "dt_button_configure_table", -- 2.20.1