Bug report #10728

Processing - "not set" disappears from optional field combo boxes when layer changed

Added by Nyall Dawson almost 10 years ago. Updated almost 9 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:Victor Olaya
Category:Processing/Core
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 #:19114

Description

For field combo boxes which are supposed to be optional there's a "[not set]" option. However, this option disappears after selecting a layer from the layer combo box - making the field choice compulsory.

Steps to reproduce:
1. Open the "Import into PostGIS" algorithm
2. Note how the "Primary key field" is set to "[not set]" - this is the first choice in the combo box
3. Change the "layer to import" combo box to a different layer
4. The "[not set]" option disappears from "Primary key field" - it's now impossible to leave this option blank

Associated revisions

Revision 0a7e69c6
Added by Nyall Dawson almost 10 years ago

[processing] Add [not set] option for field combos when parent layer changes (fix #10728), also fix some strings displaying with extra spaces

History

#1 Updated by Giovanni Manghi almost 10 years ago

  • Status changed from Open to Feedback

confirmed here on Linux. Should this be a blocker?

#2 Updated by Nyall Dawson almost 10 years ago

I'd say yes - it effectively makes any processing algorithms which rely on optional fields unusable.

#3 Updated by Giovanni Manghi almost 10 years ago

  • Status changed from Feedback to Open

ok

#4 Updated by Nyall Dawson almost 10 years ago

  • Status changed from Open to Closed

#5 Updated by Giovanni Manghi almost 9 years ago

  • Category changed from 94 to Processing/Core

Also available in: Atom PDF