Bug report #18754

Embedded form: data stays in form when last feature in relation is removed

Added by Andreas Neumann over 6 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Forms
Affected QGIS version:3.1(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 #:26641

Description

In an embedded form of a n:m relation - if one deletes the last linked feature (with Delete Feature), the data of the last feature still remains in the embedded form.

However, if one unlinks the last linked feature, the embedded form is correctly cleared.

It is suggested that after deletion of the last related feature, that the form is fully cleared, like in the unlink case.

See 4 screenshots attached: first two: deletion, 3 and 4: unlinking

qgis_embedded_form1_deleting_last_related_record.png - Deleting last related feature with "Delete" (20.9 KB) Andreas Neumann, 2018-04-18 04:40 PM

qgis_embedded_form2_deleting_last_related_record.png - Last features data remains in form (not good) (13.9 KB) Andreas Neumann, 2018-04-18 04:40 PM

qgis_embedded_form3_unlinking_last_related_record.png - Unlinking last related feature with "Unlink" (19.4 KB) Andreas Neumann, 2018-04-18 04:40 PM

qgis_embedded_form4_unlinked_last_related_record.png - Last features data is correctly cleared from form (16.3 KB) Andreas Neumann, 2018-04-18 04:40 PM

Associated revisions

Revision 6a6a8dda
Added by Matthias Kuhn over 6 years ago

Reset embedded form when last feature is removed

Fix #18754

History

#1 Updated by Anonymous over 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF