Skip to content
Permalink
Browse files

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)
  • Loading branch information
Hugo Mercier
Hugo Mercier committed Feb 22, 2018
1 parent 9c2a0f8 commit 193e0a7e4205743a6c91f3b66f837182f670edde
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsidentifyresultsdialog.cpp
@@ -584,7 +584,7 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat
continue;

QString value = fields.at( i ).displayString( attrs.at( i ) );
QString value2 = representValue( vlayer, fields.at( i ).name(), value );
QString value2 = representValue( vlayer, fields.at( i ).name(), attrs.at( i ) );

tblResults->setRowCount( j + 1 );

0 comments on commit 193e0a7

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