Replies: 1 comment
-
|
Found my way around it by doing the update on the db instead of via the service |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
In my current application I have a upload scenario. The upload creates a header item with multiple sub items. When I do a srv.new with my header data and nested item data in one object, the data is persisted, but my handlers for the items isn't called. I have a .before handler and also a .new handler.
If I try to only do the srv.new with the header data and the afterwards with the item data, then I get the DRAFT_MODIFICATION_ONLY_VIA_ROOT error. How can I call with a nested object and have my items passing through the expected handlers, if I do a manual create of an item, then the handlers are called.
Beta Was this translation helpful? Give feedback.
All reactions