Submitted to an existing entry via chained Event
This is an open discussion with 3 replies, filed under Troubleshooting.
Search
Symphony shouldn't update fields which are not in the $_POST
array. Maybe the fields have the same name in both sections? In this case I would assume that these fields are still existing in the $_POST
array, and you should be able to solve it by unsetting the $_POST
array first, before adding the id
and the used
field.
Brill thanks Michael, that did the trick.
It was just a shot in the dark — great to hear that I hit the bull's eye! :-)
Create an account or sign in to comment.
Hi folks, was hoping somebody could help,
I currently have a form that on submission will create an entry in a section. (that's the normal part)
Within the event that is being used for that I also have another event submitting automatically like this:
Now the problem lies within the second event that is being automatically fired, what I'm trying to do is have that event populate a field within an existing entry but for a different section, the ID for this entry is obtained within the first event.
Using the code below I'm currently having a little bit of success as the entry is being updated however it seems to be removing some of the data within the other fields automatically.
Just to note, 'new-registrations' is the name of the first event that the form is submitting and 'discounts-used' is the name of the event that is being fired off from within 'new-registrations'.
Can anybody shed any light on this?
Many thanks.