Bug report #14162
Cannot set parent to NULL in relation reference widget
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||Yes||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||22164|
Although the ``Allow null value`` option is checked if a child already has a parent, I cannot set that parent to NULL from the form.
Tested under Debian Stretch, QGIS 2.12.3 and Master.
I have attached data so that the issue is easily reproduced.
#3 Updated by Tudor Bărăscu over 6 years ago
- File relations_bug.gif added
Hi and thanks for the info.
I understand that when the user has checked the
Use a read-only line edit instead of a combobox box, he has the opportunity to set the parent to NULL by clicking on the X.
However, I am considering that as a workaround because if the Default setting (combobox) is used, and the
Allow null value option is checked then there is no way to select the NULL value from the combobox, and the user is restricted to the selection between other parents.
I'm attaching a GIF so that it's clearer.
#4 Updated by Sebastian Dietrich over 6 years ago
- OS version deleted (
- Operating System deleted (
- Status changed from Feedback to Open
Confirmed in current master (4c63c85cca6b33150c2af67895a2083dc69a7c5d), but the behaviour changed a little:
Now the combobox does not contain a
NULL entry at all, while before it contained one that was not selectable.