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

(-)a/admin/columns_settings.yml (+1 lines)
Lines 894-899 modules: Link Here
894
894
895
    holdshistory:
895
    holdshistory:
896
      holdshistory-table:
896
      holdshistory-table:
897
        default_display_length: 20
897
        columns:
898
        columns:
898
            -
899
            -
899
              columnname: title
900
              columnname: title
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/holdshistory.tt (-4 / +3 lines)
Lines 137-151 Link Here
137
    [% Asset.js("js/members-menu.js") | $raw %]
137
    [% Asset.js("js/members-menu.js") | $raw %]
138
    <script>
138
    <script>
139
        $(document).ready(function() {
139
        $(document).ready(function() {
140
            var columns_settings = [% TablesSettings.GetColumns('members', 'holdshistory', 'holdshistory-table', 'json') %];
140
            var table_settings = [% TablesSettings.GetTableSettings('members', 'holdshistory', 'holdshistory-table', 'json') %];
141
            [% UNLESS show_itemtype_column %]
141
            [% UNLESS show_itemtype_column %]
142
              //Remove item type column settings
142
              //Remove item type column settings
143
              columns_settings = columns_settings.filter(function(c){return c['columnname'] != 'itemtype';});
143
              table_settings['columns'] = table_settings['columns'].filter(function(c){return c['columnname'] != 'itemtype';});
144
            [% END %]
144
            [% END %]
145
            var table = KohaTable("table_holdshistory", {
145
            var table = KohaTable("table_holdshistory", {
146
                "sPaginationType": "full",
146
                "sPaginationType": "full",
147
                "aaSorting": [[4, 'desc']]
147
                "aaSorting": [[4, 'desc']]
148
            }, columns_settings);
148
            }, table_settings);
149
        });
149
        });
150
    </script>
150
    </script>
151
[% END %]
151
[% END %]
152
- 

Return to bug 29648