Wrong part image #136
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?
I use BrickTracker (1.3.1). I added set 60347. In the sets parts list i set 1 piece of part 87990 (Hair Ponytail and Swept Sideways Fringe) as damaged. In the sets inventory everything is fine. In the global parts list, on the default view everything ist fine as well. If i sort the global parts list by "damaged" the part shows up on top with the right name, but another image:
The link to the parts page is http://localhost:3333/parts/2357/15/details instead of http://localhost:3333/parts/87990/0/details
Thanks for the detailed report! It took me some time, but I was able to reproduce and identify the issue.
There was a conflict between the sort buttons and the underlying DataTables library when using client-side pagination. When sorting via the buttons, the column index mapping was incorrect, causing the wrong columns to be sorted and resulting in misaligned data (wrong images, colors, and links).
I corrected the column index mapping in the sort button configuration to match the actual table structure. The sort buttons now correctly correspond to their respective columns.
This fix will be included in version 1.4. In the meantime, using server-side pagination (enabled via
BK_PROBLEMS_SERVER_SIDE_PAGINATION=true) avoids this issue entirely, as sorting is handled server-side.Also, refreshing the page will reset the table to its correct state.
Added in
383f9899fb. Can be tested usingpre-1.4.