Merge pull request #3165 from nirvn/fix_attributetable_sort

[attributetable] add quotes to column name when sorting (fixes #14873)
This commit is contained in:
Matthias Kuhn 2016-06-02 09:12:29 +02:00
commit 1b905c814d

View File

@ -744,7 +744,7 @@ void QgsAttributeTableModel::prefetchColumnData( int column )
}
else
{
prefetchSortData( mLayerCache->layer()->fields().at( mAttributes.at( column ) ).name() );
prefetchSortData( QgsExpression::quotedColumnRef( mLayerCache->layer()->fields().at( mAttributes.at( column ) ).name() ) );
}
}