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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc (-2 / +3 lines)
Lines 54-64 function KohaTable(id_selector, dt_parameters, table_settings, add_filters) { Link Here
54
54
55
            state = JSON.parse(state);
55
            state = JSON.parse(state);
56
56
57
            if (!default_save_state_search ) {
57
            if (default_save_state_search ) {
58
                settings.loaded_from_state = true;
59
            } else {
58
                delete state.search;
60
                delete state.search;
59
                state.columns.forEach(c => delete c.search );
61
                state.columns.forEach(c => delete c.search );
60
            }
62
            }
61
            settings.loaded_from_state = true;
62
            return state;
63
            return state;
63
        }
64
        }
64
65
(-)a/koha-tmpl/intranet-tmpl/prog/js/datatables.js (-3 / +3 lines)
Lines 999-1009 function _dt_save_restore_state(table_settings, external_filter_nodes={}){ Link Here
999
999
1000
        state = JSON.parse(state);
1000
        state = JSON.parse(state);
1001
1001
1002
        if (!default_save_state_search ) {
1002
        if (default_save_state_search ) {
1003
            settings.loaded_from_state = true;
1004
        } else {
1003
            delete state.search;
1005
            delete state.search;
1004
            state.columns.forEach(c => delete c.search );
1006
            state.columns.forEach(c => delete c.search );
1005
        }
1007
        }
1006
        settings.loaded_from_state = true;
1007
        return state;
1008
        return state;
1008
    }
1009
    }
1009
1010
1010
- 

Return to bug 33484