Skip to content
Permalink
Browse files

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.
  • Loading branch information
Hugo Mercier
Hugo Mercier committed Feb 22, 2018
1 parent 6a8e423 commit 5e70e962f7040cdf3815f4178a4b291931ac71df
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsidentifyresultsdialog.cpp
@@ -610,7 +610,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat

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

tblResults->setRowCount( j + 1 );

0 comments on commit 5e70e96

Please sign in to comment.
You can’t perform that action at this time.