Bug 33484: Do not defer loading if state is loaded from localStorage
Squashing Revert "Bug 33484: (Bug 27467) Fix patrons search" This reverts commit 0d21ff768b97bc8393a01b0ad881961a3252f2cf. Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
619a1e537b
commit
fa8a9bfec6
|
|
@ -766,7 +766,9 @@
|
|||
parent_block.find(".searchpattern").parent().hide();
|
||||
});
|
||||
|
||||
if ( !defer_loading ) {
|
||||
let table_dt = patrons_table.DataTable();
|
||||
let loaded_from_state = table_dt.settings()[0].loaded_from_state;
|
||||
if ( !defer_loading || loaded_from_state ) {
|
||||
patron_search_form.submit();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ $template->param(
|
|||
PatronAutoComplete => C4::Context->preference('PatronAutoComplete'),
|
||||
patron_lists => [ GetPatronLists() ],
|
||||
PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20,
|
||||
defer_loading => ( scalar $query->param('memberresultst_state') ) ? 0 : 1,
|
||||
defer_loading => 1,
|
||||
);
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
|
|
|||
Loading…
Reference in New Issue