You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(If applicable) Installation package for the LAMP/LEMP stack is:
Bug
In the latest master on an upgraded database when I click any of the column headers TWO times the view changes to no items to display. The expected behavior is that the table would sort ascending and descending on any column, but instead when clicking a second time it returns no items to display. Nothing is in the search box. The demo is down, so I couldn't test it on another box. Can anyone else running the ca2907 master confirm this is a bug?
If you have 'no items', then that probably means the server had an internal error, can you check the http status code and verify if any logging is available?
@jekkos upon investigating further it appears to be working but there is anywhere between a 4 and 10 second delay where it says "no items to display". I just wasn't waiting long enough. I wonder if we shouldn't do some optimization of the sort or if we could change the display while its waiting to something more indicative of the fact that it's sorting.
There is definitely something funny going on with the sort though. When I try to sort by any of my attributes it changes the view, but isn't actually sorting them. You can see from the attached image that I've sorted by my "Category" attribute (not to be confused with Category in the items table) but it's clearly not sorted by the attribute.
Fixed by PR #4060 which added sanitizeSortColumn() method to validate sort columns against valid column headers. This prevents SQL injection and fixes the bug where invalid sort parameters caused items to not display. Closing as fixed.
Activity
jekkos commentedon Feb 14, 2020
If you have 'no items', then that probably means the server had an internal error, can you check the http status code and verify if any logging is available?
objecttothis commentedon Feb 14, 2020
@jekkos upon investigating further it appears to be working but there is anywhere between a 4 and 10 second delay where it says "no items to display". I just wasn't waiting long enough. I wonder if we shouldn't do some optimization of the sort or if we could change the display while its waiting to something more indicative of the fact that it's sorting.
objecttothis commentedon Feb 14, 2020
There is definitely something funny going on with the sort though. When I try to sort by any of my attributes it changes the view, but isn't actually sorting them. You can see from the attached image that I've sorted by my "Category" attribute (not to be confused with Category in the items table) but it's clearly not sorted by the attribute.
daN4cat commentedon Feb 23, 2020
@jekkos , have you looked into this attribute sorting issue?
jekkos commentedon Feb 25, 2020
Not yet, it's on my list though. I fixed the build first and have another branch pending (that's mostly finished but still needs final validation)
Disable attribute sort (#2722)
jekkos commentedon Mar 9, 2020
I have disabled sorting for now, I'll try to see if I can come up with a solution to make it work, but it does not seem to be straightforward.
4 remaining items
Implement Phase 3: Multi-attribute search AND logic and Phase 4: Sort…
Refactor attribute search to fix pagination and multi-attribute search
Implement Phase 3: Multi-attribute search AND logic and Phase 4: Sort…
Refactor attribute search to fix pagination and multi-attribute search
Implement Phase 3: Multi-attribute search AND logic and Phase 4: Sort…
jekkos commentedon Apr 1, 2026
Fixed by PR #4060 which added sanitizeSortColumn() method to validate sort columns against valid column headers. This prevents SQL injection and fixes the bug where invalid sort parameters caused items to not display. Closing as fixed.
Refactor attribute search to fix pagination and multi-attribute search
Implement Phase 3: Multi-attribute search AND logic and Phase 4: Sort…
Refactor attribute search to fix pagination and multi-attribute search
Implement Phase 3: Multi-attribute search AND logic and Phase 4: Sort…
Refactor attribute search to fix pagination and multi-attribute search
Implement Phase 3: Multi-attribute search AND logic and Phase 4: Sort…
Implement Phase 3: Multi-attribute search AND logic and Phase 4: Sort…
feat(items): optimize search, attribute filtering, and sort for items…