[Koha-bugs] [Bug 32016] New: Fix clear filter button behavior on parcel.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 27 14:13:16 CEST 2022


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

            Bug ID: 32016
           Summary: Fix clear filter button behavior on parcel.pl
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P5 - low
         Component: Acquisitions
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: thibaud.guillot at biblibre.com
        QA Contact: testopia at bugs.koha-community.org

Since 20.11, there is only one filter per column or one global filter on
'cgi-bin/koha/acqui/parcel.pl?invoiceid=X' when you want to receive shipments.

With many shopping carts, it can be useful to filter by certain criteria,
passed by column or/and by the "global" search input. But when we click receive
and get redirected to
'cgi-bin/koha/acqui/orderreceive.pl?ordernumber=X&invoiceid=Y' after saving or
canceling action, back to previous page, data table is still filtered but we
cannot clear the input from the global search filter.

There is a parameter for datatable which can be passed to false to avoid saving
the state of the datatable but this is not a solution because it can be tedious
to set again the desired filters.

The problem is related to the fact that the state of the datatable is saved by
a cookie, retrieved when loading this same datatable. But when initializing the
"clear filter" button, the class disabled is added if the search is empty and
the recovery of the cookie is not taken into account.

This is a first correction proposal that I will submit and which corrects the
problem on the other datatables which would have the same behavior.

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


More information about the Koha-bugs mailing list