Bug
Topic deletion not processed when combined with statement deletion
Issue description
When a POST service deletes a topic and deletes a statement of a different topic, the topic deletion is not processed.
Developer comments
An association was missing from a dobject, but was present in the database. In this case the topic and the corresponding adjunct were frozen. Despite ignore_frozen being called, the association was not acutally deleted from the database, but the change was merged into the dobject nevertheless. In additon a nested service call was made (to attach the updated credit note) and this is the root cause of the problem.
This also raised the question about nested service calls and auto commit off, because this is independent of the nested call using non-modifying GET.
Here the error is in the database, the dobject is correct, but the package that was generated by the service missed the deletion of the frozen topics.
The was caused by using the += operator in PHP to append to an array. This did not work as expected. Changed that to ordinary iteration. Now it works as expected.
|
Work sessions2
Start |
2023-09-27T09:13:07
|
End |
2023-09-27T11:56:58
|
Participant |
Robert Cerny
|
Start |
2023-09-27T12:31:23
|
End |
2023-09-27T13:38:18
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.