Bug 36592: Fix default display lenght and default sort

To test:
1. Go to Admin > Table settings
2. Find a table that includes Default display length or Default sort
   order.
3. Try to save a new value.
4. When the page reloads the new values have not been saved.
5. APPLY PATCH
6. Try 1 -3 again, this time the value should save correctly.
7. Go to Admin > Table settings and make sure the accordians still work
   and the in page links in each section still work.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Lucas Gass 2024-04-12 12:02:46 +00:00 committed by Katrin Fischer
parent 63612311e3
commit c32688ce98
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 3 additions and 3 deletions

View File

@ -23,14 +23,14 @@
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 1 %]
Jump to table:
[% FOR tablename IN tables.$pagename.keys.sort %]
[% SET table_id = pagename _ '_' _ tablename %]
[% SET table_id = pagename _ '#' _ tablename %]
<a href="#[% table_id | uri %]">[% tablename | html %]</a>
[% UNLESS loop.last %]<span class="separator"> | </span>[% END %]
[% END %]
[% END %]
[% IF tables.$pagename.keys and tables.$pagename.keys.size > 0 %]
[% FOR tablename IN tables.$pagename.keys.sort %]
[% SET table_id = pagename _ '_' _ tablename %]
[% SET table_id = pagename _ '#' _ tablename %]
<div class="datatable_config" id="[% table_id | html %]">
<input type="hidden" name="table_id" value="[% table_id| html %]" />
[% IF pagename == 'additem' AND tablename == 'itemst' %]
@ -385,7 +385,7 @@
$("#[% panel | uri %]_panel").on('shown.bs.collapse', function () {
$('html, body').animate({
[%- IF table.defined -%]
scrollTop: ($("#[% page | uri %]_[% table | uri %]").offset().top)
scrollTop: ($("#[% page | uri %]#[% table | uri %]").offset().top)
[%- ELSE -%]
scrollTop: ($("#[% page | uri %]").offset().top)
[%- END -%]