When adding a child feature the child id is not saved into the pivot table while the parent id is correctly saved. I'm attaching a small project to reproduce the issue: relation_bug.zip
It seems that the edits on the relation layer are saved when opening the form of the child feature and not when clicking on OK (you can notice it thanks to the editing icon in the legend). Therefore, when finally saving all the edits, the ones made on the relation are not stored.
What is the bug or the crash?
When adding a child feature the child id is not saved into the pivot table while the parent id is correctly saved. I'm attaching a small project to reproduce the issue: relation_bug.zip
It seems that the edits on the
relation
layer are saved when opening the form of the child feature and not when clicking on OK (you can notice it thanks to the editing icon in the legend). Therefore, when finally saving all the edits, the ones made on therelation
are not stored.Ref also to https://github.com/qgis/QGIS/pull/57689?
Screencast 2024-11-20 15:20:38.webm
Steps to reproduce the issue
The N:M relation is between the
points
andprojects
layer with therelation
layer that is the pivot table.identify a feature on the
points
layerin the embedded form toggle the editing mode for the child (project layer)
type a new ID (in the attached projects existing ids of the projects table are 1, 2, 3) in the upper part of the new form
click OK and save
While the new id of is correctly saved into the
projects
layer, it is not saved into therelation
layer (the N:M):Versions
QGIS LTR 3.34 but also QGIS master
Supported QGIS version
New profile
Additional context
No response