[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
Wed Nov 2 14:42:05 CET 2022


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

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

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

--- Comment #5 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 142977
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142977&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>

Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>

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


More information about the Koha-bugs mailing list