Bug report #12305

Field widget: Date/Time allow NULL values - does not work

Added by Andrew Bell over 9 years ago. Updated over 9 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Edit widget
Affected QGIS version:2.8.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:not reproducable
Crashes QGIS or corrupts data:No Copied to github as #:20483

Description

There is an option in 2.8 to allow NULL values within the Edit Widget properties for Date/Time.

However if this option is selected this does not change the behaviour and default remains 2000-01-01. There appears not to be a way to set to NULL on form screen when using the calendar pop-up or otherwise.

Ideal solution would be for the default to be null, and a button on the calendar widget to set to NULL.

History

#1 Updated by Giovanni Manghi over 9 years ago

  • Status changed from Open to Feedback
  • Category changed from Forms to Edit widget

Hi,

I cannot confirm this. If the "allow NULL" option is active then the default value (when attribute form shows) is NULL. Is is also possible to "clean" a date attribute/column (with the date/time widget) by clicking the symbol (x) of the right of the cell/attribute form field.

#2 Updated by Giovanni Manghi over 9 years ago

  • Resolution set to not reproducable
  • Status changed from Feedback to Closed

closing for lack of feedback.

Also available in: Atom PDF