Skip to content

Commit 193e0a7

Browse files
author
Hugo Mercier
committed
Fix call to representValue in identifydialog
This should fix the problem of queries with WHERE (id = 'NULL') when the string 'NULL' cannot be converted to integer / uuid, as seen with relation reference widgets. (cherry-picked from 5e70e96)
1 parent 9c2a0f8 commit 193e0a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsidentifyresultsdialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat
584584
continue;
585585

586586
QString value = fields.at( i ).displayString( attrs.at( i ) );
587-
QString value2 = representValue( vlayer, fields.at( i ).name(), value );
587+
QString value2 = representValue( vlayer, fields.at( i ).name(), attrs.at( i ) );
588588

589589
tblResults->setRowCount( j + 1 );
590590

0 commit comments

Comments
 (0)