View | Details | Raw Unified | Return to bug 41604
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-1 / +12 lines)
Lines 1022-1027 function _dt_visibility(table_settings, table_dt) { Link Here
1022
        let i = 0;
1022
        let i = 0;
1023
        let use_names = $(table_dt.table().node()).data("bKohaColumnsUseNames");
1023
        let use_names = $(table_dt.table().node()).data("bKohaColumnsUseNames");
1024
        if (use_names) {
1024
        if (use_names) {
1025
            // Deal with visibility_condition (needed when state is not saved)
1026
            table_settings.columns = table_settings.columns.map(c => {
1027
                if (c.visibility_condition === false) {
1028
                    return {
1029
                        ...c,
1030
                        is_hidden: true,
1031
                        cannot_be_toggled: true,
1032
                    };
1033
                }
1034
                return c;
1035
            });
1036
1025
            let hidden_columns = table_settings.columns.filter(
1037
            let hidden_columns = table_settings.columns.filter(
1026
                c => c.is_hidden
1038
                c => c.is_hidden
1027
            );
1039
            );
1028
- 

Return to bug 41604