Bug 42009

Summary: Improve parameter list passed to kohaTable
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Jonathan Druart 2026-03-06 08:56:34 UTC
$.fn.kohaTable = function (
        options = {},
        table_settings,
        add_filters,
        default_filters,
        filters_options,
        external_filter_nodes,
        show_search_descriptions,
        additional_search_descriptions
) {

We should destructure and use named parameters instead.

$.fn.kohaTable = function ({
    options = {},
    table_settings,
    add_filters,
    default_filters,
    filters_options,
    external_filter_nodes,
    show_search_descriptions,
    additional_search_descriptions
} = {}) {
Comment 1 Jonathan Druart 2026-03-06 08:57:17 UTC
I can work on that as soon as people are ready to test.