Project

General

Profile

Actions

Bug #4009

closed

QueryModel setQuery with keepColumns forgets ORDER BY, but retains column sort indicator

Added by Bruce Toll over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Benoit Daccache
Target version:
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

Actions #1

Updated by Koen Deforche over 9 years ago

  • Status changed from New to InProgress
  • Assignee set to Benoit Daccache
Actions #2

Updated by Benoit Daccache over 9 years ago

  • Status changed from InProgress to Resolved
Actions #3

Updated by Koen Deforche about 9 years ago

  • Status changed from Resolved to Closed
Actions #4

Updated by Koen Deforche about 9 years ago

  • Target version set to 3.3.5
Actions

Also available in: Atom PDF