Bug 35876

Summary: Cannot sort already received table on reopening invoice
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: lucas
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nick Clemens (kidclamp) 2024-01-23 14:46:11 UTC
To recreate:
1 - Place at least 4 orders in a basket
2 - Close the basket
3 - Receive two orders on an invoice
4 - In the 'Already Received' click sort on different columns, confirm they sort
5 - Note the current sort and click 'My Vendor' in the breadcrumbs
6 - Click 'Receive shipments'
7 - Click on the previous invoice
8 - Note 'Already received' retained last sort
9 - Attempt to sort - nothing happnes
10 - In browser console (F12) go to Store->Local Storage->{Koha host}
11 - Note two values, find the 'Datatables_receivedt_'
12 - Delete that entry
13 - Reload page
14 - You can sort again
Comment 1 Lucas Gass (lukeg) 2024-01-31 20:30:25 UTC
(In reply to Nick Clemens from comment #0)
> To recreate:
> 1 - Place at least 4 orders in a basket
> 2 - Close the basket
> 3 - Receive two orders on an invoice
> 4 - In the 'Already Received' click sort on different columns, confirm they
> sort
> 5 - Note the current sort and click 'My Vendor' in the breadcrumbs
> 6 - Click 'Receive shipments'
> 7 - Click on the previous invoice
> 8 - Note 'Already received' retained last sort
> 9 - Attempt to sort - nothing happnes
> 10 - In browser console (F12) go to Store->Local Storage->{Koha host}
> 11 - Note two values, find the 'Datatables_receivedt_'
> 12 - Delete that entry
> 13 - Reload page
> 14 - You can sort again

I recreate this all the way to step 14. At that point I am still unable to sort.
Comment 2 Lucas Gass (lukeg) 2024-01-31 21:00:07 UTC
If I try using any of the dataTable controls/filters/pagination and then sort, it works.