Lines 103-109
sub get_table_settings {
Link Here
|
103 |
default_display_length => $rs ? $rs->default_display_length |
103 |
default_display_length => $rs ? $rs->default_display_length |
104 |
: $list->{modules}{$module}{$page}{$tablename}{default_display_length}, |
104 |
: $list->{modules}{$module}{$page}{$tablename}{default_display_length}, |
105 |
default_sort_order => $rs ? $rs->default_sort_order |
105 |
default_sort_order => $rs ? $rs->default_sort_order |
106 |
: $list->{modules}{$module}{$page}{$tablename}{default_sort_order} |
106 |
: $list->{modules}{$module}{$page}{$tablename}{default_sort_order}, |
|
|
107 |
default_save_state => $rs ? $rs->default_save_state |
108 |
: $list->{modules}{$module}{$page}{$tablename}{default_save_state}, |
107 |
}; |
109 |
}; |
108 |
} |
110 |
} |
109 |
|
111 |
|
Lines 153-162
sub update_columns {
Link Here
|
153 |
C4::Utils::DataTables::TablesSettings::update_table_settings( |
155 |
C4::Utils::DataTables::TablesSettings::update_table_settings( |
154 |
{ |
156 |
{ |
155 |
module => $module, |
157 |
module => $module, |
156 |
pag => $page, |
158 |
page => $page, |
157 |
tablename => $tablename, |
159 |
tablename => $tablename, |
158 |
default_display_length => $default_display_length, |
160 |
default_display_length => $default_display_length, |
159 |
default_sort_order => $default_sort_order |
161 |
default_sort_order => $default_sort_order, |
|
|
162 |
default_save_state => $default_save_state, |
160 |
} |
163 |
} |
161 |
); |
164 |
); |
162 |
|
165 |
|
Lines 171-176
sub update_table_settings {
Link Here
|
171 |
my $tablename = $params->{tablename}; |
174 |
my $tablename = $params->{tablename}; |
172 |
my $default_display_length = $params->{default_display_length}; |
175 |
my $default_display_length = $params->{default_display_length}; |
173 |
my $default_sort_order = $params->{default_sort_order}; |
176 |
my $default_sort_order = $params->{default_sort_order}; |
|
|
177 |
my $default_save_state = $params->{default_save_state}; |
174 |
|
178 |
|
175 |
my $schema = Koha::Database->new->schema; |
179 |
my $schema = Koha::Database->new->schema; |
176 |
|
180 |
|
Lines 181-186
sub update_table_settings {
Link Here
|
181 |
tablename => $tablename, |
185 |
tablename => $tablename, |
182 |
default_display_length => $default_display_length, |
186 |
default_display_length => $default_display_length, |
183 |
default_sort_order => $default_sort_order, |
187 |
default_sort_order => $default_sort_order, |
|
|
188 |
default_save_state => $default_save_state, |
184 |
} |
189 |
} |
185 |
); |
190 |
); |
186 |
} |
191 |
} |