Bug report #6281

attribute editor: NULL value for relation value

Added by Matthias Kuhn over 11 years ago. Updated over 11 years ago.

Assignee:Jürgen Fischer
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:fixed
Crashes QGIS or corrupts data:No Copied to github as #:15581


When you display a combo box for a relation value (foreign key) in the attribute editor and choose to show the items ordered, a NULL-value is not selected, when the data has a NULL-value.

The attached patch solves this problem. Apart from that, the NULL-value is now always the first item in the combobox.

0001-Proper-handling-of-NULL-value-for-combobox.patch Magnifier (1.44 KB) Matthias Kuhn, 2012-08-29 11:49 PM


#1 Updated by Giovanni Manghi over 11 years ago

  • Pull Request or Patch supplied changed from No to Yes

#2 Updated by Andreas Neumann over 11 years ago

  • Assignee set to Jürgen Fischer

Hi Jürgen,

Can you please have a look at this patch? I think you know this bit of code the best.


#3 Updated by Paolo Cavallini over 11 years ago

  • Target version set to Version 2.0.0

#4 Updated by Jürgen Fischer over 11 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

applied in b121a2f688

Also available in: Atom PDF