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

(-)a/C4/Utils/DataTables/TablesSettings.pm (-4 / +9 lines)
Lines 101-119 sub get_table_settings { Link Here
101
        }
101
        }
102
    )->next;
102
    )->next;
103
103
104
    my $table_settings = $list->{modules}->{$module}->{$page}->{$tablename};
104
    return {
105
    return {
105
        default_display_length => $rs
106
        default_display_length => $rs
106
            ? $rs->default_display_length
107
            ? $rs->default_display_length
107
            : $list->{modules}{$module}{$page}{$tablename}{default_display_length},
108
            : $table_settings->{default_display_length},
108
        default_sort_order => $rs
109
        default_sort_order => $rs
109
            ? $rs->default_sort_order
110
            ? $rs->default_sort_order
110
            : $list->{modules}{$module}{$page}{$tablename}{default_sort_order},
111
            : $table_settings->{default_sort_order},
111
        default_save_state => $rs
112
        default_save_state => $rs
112
            ? $rs->default_save_state
113
            ? $rs->default_save_state
113
            : 1,
114
            : exists $table_settings->{default_save_state}
115
                ? $table_settings->{default_save_state}
116
                : 1,
114
        default_save_state_search => $rs
117
        default_save_state_search => $rs
115
            ? $rs->default_save_state_search
118
            ? $rs->default_save_state_search
116
            : $list->{modules}{$module}{$page}{$tablename}{default_save_state_search},
119
            : exists $table_settings->{default_save_state_search}
120
                ? $table_settings->{default_save_state_search}
121
                : 0,
117
    };
122
    };
118
}
123
}
119
124
(-)a/admin/columns_settings.yml (-1 / +2 lines)
Lines 420-425 modules: Link Here
420
    detail:
420
    detail:
421
      holdings_table:
421
      holdings_table:
422
        default_display_length: 20
422
        default_display_length: 20
423
        default_save_state: 0
423
        columns:
424
        columns:
424
            -
425
            -
425
              columnname: checkbox
426
              columnname: checkbox
Lines 490-495 modules: Link Here
490
491
491
      otherholdings_table:
492
      otherholdings_table:
492
        default_display_length: 20
493
        default_display_length: 20
494
        default_save_state: 0
493
        columns:
495
        columns:
494
            -
496
            -
495
              columnname: checkbox
497
              columnname: checkbox
496
- 

Return to bug 38482