Actions
Bug #4009
closedQueryModel setQuery with keepColumns forgets ORDER BY, but retains column sort indicator
Start date:
04/26/2015
Due date:
% Done:
0%
Estimated time:
Description
Calling QueryModel setQuery() with keepColumns=true drops any pre-existing SQL ORDER BY clause, but not does not reset the model's sort column. This can result in a WTableView column sort indicator that does not reflect the current row ordering.
The attached test program demonstrates the problem with the github version of Wt, 3.3.3-48-g051edee (3.4.0+).
The attached patch addresses the issue by retaining any pre-existing ORDER BY clause when keepColumns is true. It builds on top of the patch included with #4008. Let me know if you'd prefer to have this patch resubmitted without the dependency.
Files
Updated by Koen Deforche over 9 years ago
- Status changed from New to InProgress
- Assignee set to Benoit Daccache
Updated by Benoit Daccache over 9 years ago
- Status changed from InProgress to Resolved
Updated by Koen Deforche about 9 years ago
- Status changed from Resolved to Closed
Actions