Hello EE’ers,
We’ve hit a bit of a problem with our Add-on development and could really use some advice.
We are trying to capture the data submitted from the publish form and divert it before EE updates the database. We are using the entry_submission_ready hook as this looks like the earliest we can escape the process and leave with the data. entry_submission_start doesn’t seem to bring anything useful with it.
My problem is that before the entry_submission_ready hook is called, the submit_new_entry() method in Api_channel_entries runs a bunch of methods including one called _build_relationships.
Now, _build_relationships updates the exp_relationships table every time it is called, regardless whether the relationship in question has changed (Behaviour which is at odds with the comments but we’ve been logging transactions and this seems consistent).
The net result of this is that our entry_data array now contains a reference to a relationship that no longer exists.
How can I capture the submitted data and get away from the EE publishing process BEFORE the relationships table is updated?
Any advice of ideas would be very gratefully received.
Best wishes,
Malcolm
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.