Skip to content

Commit 5e70e96

Browse files
author
Hugo Mercier
committed
Fix call to representValue in identifydialog (refs #17175)
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.
1 parent 6a8e423 commit 5e70e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsidentifyresultsdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat
610610

611611
QString value = fields.at( i ).displayString( attrs.at( i ) );
612612
const QgsEditorWidgetSetup setup = QgsGui::editorWidgetRegistry()->findBest( vlayer, fields.at( i ).name() );
613-
QString value2 = representValue( vlayer, setup, fields.at( i ).name(), value );
613+
QString value2 = representValue( vlayer, setup, fields.at( i ).name(), attrs.at( i ) );
614614

615615
tblResults->setRowCount( j + 1 );
616616

0 commit comments

Comments
 (0)