[Koha-bugs] [Bug 32016] Fix 'clear filter' button behavior on datatable saving their state

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Oct 29 02:20:20 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32016

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #142713|0                           |1
        is obsolete|                            |

--- Comment #3 from David Nind <david at davidnind.com> ---
Created attachment 142797
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142797&action=edit
Bug 32016: Fix clear filter button behavior

For example, if you filter by global search input a datatable which saves its
previous state when you want to return to this datatable, the backup is
recovered in a cookie but the "clear filter" button is disabled because for it
the input is empty, the verification of the recovery of the cookie not being
made.

When loading I therefore added the verification of the cookie and if the search
value is not empty then the button can be activated.

Test plan:

1) Be sure to have some orders and baskets which can be received
2) Go to 'cgi-bin/koha/acqui/booksellers.pl' and click on 'Receive
shipments'
3) Enter something in global search
4) Go to receive and cancel or save to be back on datatable
5) See that you cannot remove your previous input by the 'clear filter'
button
6) Apply this patch
7) Repeat steps 3) and 4)
8) See that now you can remove your search

Signed-off-by: David Nind <david at davidnind.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list