Wrong part image #136

Closed
opened 2026-02-01 16:51:52 +01:00 by d0yhdwfbaz · 2 comments

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:

grafik.png

The link to the parts page is http://localhost:3333/parts/2357/15/details instead of http://localhost:3333/parts/87990/0/details

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: ![grafik.png](/attachments/c4030947-cadb-4d25-8a62-923654ddaf92) The link to the parts page is http://localhost:3333/parts/2357/15/details instead of http://localhost:3333/parts/87990/0/details
Owner

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.

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.
FrederikBaerentsen added the Kind/Bug label 2026-02-01 20:50:57 +01:00
FrederikBaerentsen added this to the General Improvements project 2026-02-01 20:51:00 +01:00
FrederikBaerentsen added this to the Version 1.4 milestone 2026-02-01 20:51:02 +01:00
Owner

Added in 383f9899fb. Can be tested using pre-1.4.

Added in 383f9899fb5b09fe8fca06394d0fdeb847cde308. Can be tested using `pre-1.4`.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: FrederikBaerentsen/BrickTracker#136