Bug report #19137

Mutations in embedded forms (1:n) are not stored until user clicks in side bar of embedded form

Added by Andreas Neumann about 6 years ago. Updated about 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 #:26967

Description

In the EWS project of Kanton Zug (Matthias has data and project), users sometimes want to modify data of embedded form (1:n relation).

However, after modifications in the embedded linked records are not stored until user clicks into side bar of embedded form (see screenshot attached).

Only then, the modifications are added to the open transaction, otherwise, any modifications are lost.

Expected: data is stored always, whenever user leaves the focus of one widget of an embedded form, e.g. by using tab keys or by clicking anywhere in the parent form, or into another widget insided or outside of the embedded form.

mutations_problem_embedded_form.png (109 KB) Andreas Neumann, 2018-06-07 02:17 PM

Associated revisions

Revision 07498350
Added by Matthias Kuhn about 6 years ago

Take changes of embedded forms into account

when clicking on ok of an attribute form, tell all embedded widgets (all
widgets actually) that we are going to close the form and it's the last
call to push changes to the edit buffer or they will be lost.

Fix #19137

History

#1 Updated by Anonymous about 6 years ago

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

Also available in: Atom PDF