Bug report #14927

Attribute table sorting problem with qgis-rel-dev

Added by Pedro Venâncio almost 10 years ago. Updated almost 10 years ago.

Status:Closed
Priority:High
Assignee:Even Rouault
Category:Attribute table
Affected QGIS version:2.14.3 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:22878

Description

When I try to sort the columns in the attribute table (by clicking on the column name), with 7d7467f (qgis-rel-dev 2.14.3-7 OSGeo4W 64 bits), nothing happens, regardless of the field type.

Doing the same with c260a77 (qgis 2.14.3-1) or 78bcd4b (qgis-dev 2.15.0-74), the sorting works fine.

Tested with postgis and shapefiles datasources.

Associated revisions

Revision 671850f6
Added by Even Rouault almost 10 years ago

Fix sorting in attribute table

Regression introduced with 3ec3daeb14a047c3f4efdd8646a51b33661c28ce (2.14.3) where
QgsAttributeTableModel::data(index, SortRole) returned an empty variant.

Fixes #14927

History

#1 Updated by Luca Lanteri almost 10 years ago

Same problem using 2.14.3-Essen.
It can be considered a regression ?

#2 Updated by Even Rouault almost 10 years ago

  • Status changed from Open to Closed

#3 Updated by Even Rouault almost 10 years ago

  • Resolution set to fixed/implemented
  • Assignee set to Even Rouault

Also available in: Atom PDF