Skip to content

Commit 1b905c8

Browse files
committed
Merge pull request #3165 from nirvn/fix_attributetable_sort
[attributetable] add quotes to column name when sorting (fixes #14873)
2 parents 732b1cb + 38e9435 commit 1b905c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gui/attributetable/qgsattributetablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ void QgsAttributeTableModel::prefetchColumnData( int column )
744744
}
745745
else
746746
{
747-
prefetchSortData( mLayerCache->layer()->fields().at( mAttributes.at( column ) ).name() );
747+
prefetchSortData( QgsExpression::quotedColumnRef( mLayerCache->layer()->fields().at( mAttributes.at( column ) ).name() ) );
748748
}
749749
}
750750

0 commit comments

Comments
 (0)