Bug 42190: Remove the 'Configure' button

Remove the "Configure" if the table does not have module, page and table
defined.

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-04-03 14:05:24 +02:00 committed by Lucas Gass
parent 97469d1a0d
commit 934e5429f4
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 7 additions and 1 deletions

View File

@ -951,7 +951,13 @@ function _dt_buttons(params) {
});
}
if (table_settings && CAN_user_parameters_manage_column_config) {
if (
table_settings &&
table_settings.module &&
table_settings.page &&
table_settings.table &&
CAN_user_parameters_manage_column_config
) {
let href =
"/cgi-bin/koha/admin/columns_settings.pl?module=%s&page=%s&table=%s".format(
table_settings.module,