Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widget "Range": Representation for NULL value is NOT always displayed correctly #26471

Closed
qgib opened this issue Mar 29, 2018 · 5 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms

Comments

@qgib
Copy link
Contributor

qgib commented Mar 29, 2018

Author Name: Manuel K (Manuel K)
Original Redmine Issue: 18583
Affected QGIS version: master
Redmine category:forms
Assignee: Alessandro Pasotti


Attribute of type integer;
DB: PostGIS
Allow NULL is checked; Editable
Minimum value: 2018; Maximum value: 2099; Step: 1

Problem:
In the form a NULL value is wrongly displayed as (Minimum value)-1 (i.e 2017) if "Representation for NULL values" in options was left empty (my preferred Setting). However, the value in the database is correct (NULL).


@qgib
Copy link
Contributor Author

qgib commented Jul 3, 2018

Author Name: Anónimo (Anónimo)


Applied in changeset f3682be.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Sep 17, 2018

Author Name: Manuel K (Manuel K)


The described bug persists (master 3.3.0-71 and nightly 3.2.3-1).
And not only for attributes of type integer, but also for attributes of type numeric.

Example (type numeric):

Range widget configuration: Minimum: 0.00; Maximum: 399.90; Step: 0.10; Precision: 1; Allow NULL is checked.
--> In the form the NULL value is displayed as -0.1 (what corresponds to "[Minimum]-10^-[Precision]") instead of an empty field.



  • 13303 was configured as representation_for_NULL_values_empty.jpg
  • status_id was changed from Closed to Reopened
  • 13302 was configured as range_widget_config.jpg
  • 13301 was configured as range_widget_display.jpg

@qgib
Copy link
Contributor Author

qgib commented Sep 17, 2018

Author Name: Alessandro Pasotti (@elpaso)


  • assigned_to_id was configured as Alessandro Pasotti

@qgib
Copy link
Contributor Author

qgib commented Sep 18, 2018

Author Name: Alessandro Pasotti (@elpaso)


PR #7943


  • status_id was changed from Reopened to In Progress
  • pull_request_patch_supplied was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Sep 18, 2018

Author Name: Anónimo (Anónimo)


Applied in changeset d179635.


  • status_id was changed from In Progress to Closed

@qgib qgib closed this as completed Sep 18, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms
Projects
None yet
Development

No branches or pull requests

1 participant