mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
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.
This commit is contained in:
parent
6a8e423470
commit
5e70e962f7
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user