Bug report #19901

Relation Reference Widget: Representation for NULL values is not respected

Added by Manuel K about 6 years ago. Updated about 6 years ago.

Status:Closed
Priority:Normal
Assignee:Alessandro Pasotti
Category:Forms
Affected QGIS version:3.3(master) Regression?:No
Operating System:Windows 7 Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:27725

Description

Drop-down list of Relation reference widget:

Whatever "Representation for NULL values" is configured in "Options - Data Sources", a NULL value in the drop-down list is always wrongly displayed as "NULL".

See attached example with "MY_NULL_REPRESENTATION_VALUE" as NULL representation.

relation_reference_NULL.jpg (82.6 KB) Manuel K, 2018-09-20 11:26 AM

Associated revisions

Revision 5378e37c
Added by Alessandro Pasotti about 6 years ago

QgsFeatureListComboBox nullRepresentation instead of hardcoded "NULL"

Fixes #19901 - Relation Reference Widget: Representation for NULL values is not respected

History

#1 Updated by Alessandro Pasotti about 6 years ago

  • Status changed from Open to Feedback

does this also happen if you restart QGIS after changing the null value representation?

#2 Updated by Manuel K about 6 years ago

Yes.
I changed the null value representation to several other values (my preferred setting is an empty string by the way) and always restarted QGIS. Same behaviour.

#3 Updated by Alessandro Pasotti about 6 years ago

  • Assignee set to Alessandro Pasotti

#4 Updated by Alessandro Pasotti about 6 years ago

  • Status changed from Feedback to In Progress
  • Pull Request or Patch supplied changed from No to Yes

#5 Updated by Anonymous about 6 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

Also available in: Atom PDF