[Bug] Sorting parts via headers returns non-valid list #145
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When I click a table header Damaged to sort my parts the image and part color (part A - wrong) does not match the rest of part (part B - correct) properties. Clicking on the part B name redirects to part A page with its own, correct properties.
Steps for reproduce
Expected behaviour
The part list should be presented in the same way as if I sort the table via Sort submenu with Damaged button. All part properties should match this part.
Current behaviour
The image and part color (part A - wrong) does not match the rest of part (part B - correct) properties.
Environment:
Running version 1.3.1 via docker-compose with own .env and served via reverse proxy.
Screenshots
First is non-valid: Gray Chain 16L is presented as Red Axle Hose, Soft 7L.
Second is valid, sorted via button from sort section.
Impact
This is only a minor bug, there is second method for sorting that still works.
Thanks for the bug report!
This is the same root cause as #136. A data corruption issue with DataTables client-side pagination when mixing header clicks and sort buttons. This has been fixed in the upcoming 1.4 release, where sort buttons now sync with the DataTables header state to prevent misaligned images, colors, and links.
Version 1.4 is available for testing using the Docker tag
pre-1.4.To test release, update your compose file with the new tag.
Backup Your Database Before Upgrading!
This release includes database migrations (v20 -> v27) with NO automatic rollback capability.
It is recommended to make a copy of your install and test on that.
OR manually download a copy of your database from the admin page.
Closing the issue but let me know if this doesn't fix your issue and feel free to reopen.