Bug 42009 - Improve parameter list passed to kohaTable
Summary: Improve parameter list passed to kohaTable
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-06 08:56 UTC by Jonathan Druart
Modified: 2026-03-06 08:57 UTC (History)
0 users

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.