Bug report #16825

NULL value issue in range widget: a value of 0 is incorrectly displayed as NULL

Added by Andreas Neumann over 6 years ago. Updated over 4 years ago.

Category:Edit widget
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:24724


An attribute field of a particular feature has a value of 0.000 and a range widget assigned.

The Postgis type is "numeric(9,3)".

"Allow NULL" is enabled in the edit widget options.

If one opens the form (editing mode enabled) with the identify tool, the display value is "NULL" instead of the zero that exists in the data. 0 or 0.000 should be dipslayed instead.

Three screenshots are attached to show the configuration, edit form and attribut table. The concerned attribute is "vonkm".

range_widget_problem1_configuration.png - The edit widget configuration of attribute "vonkm" (59.8 KB) Andreas Neumann, 2017-07-10 10:22 AM

range_widget_problem2_edit_form.png - The invalid NULL value in the edit form (54 KB) Andreas Neumann, 2017-07-10 10:23 AM

range_widget_problem3_attribtable.png - The value of 0.000 in the attribute table. (41.7 KB) Andreas Neumann, 2017-07-10 10:23 AM


#1 Updated by Giovanni Manghi over 4 years ago

  • Status changed from Open to Feedback

Please check if this issue is still valid on QGIS 3.4.5 or 3.6.

Also available in: Atom PDF