I’m trying to update a structure field but don’t how what format to pass it to the $page->update() function. My structure field has the following setup:
label: Product options
Now I’m getting a new product quantity through a webhook and managed to “find” the right field in the structure but I see no way updating it.
I tried updating the object I get back from ->toStructure(), updating it and passing it back but ->update() doesnt like the value.
On mac everything working as expected. Form was sended, emails was sended, success message wa showed and structure field was updated.
On win, form was ended, emails was sended, success message wa showed, but structure field is not updated.
Maybe problem within permissions? I don’t know…
This is not OS related issue.
Field is updated when I’m logged in.
So it looks like permission problem.
Any suggestion how to update addToStructure function?