Problem/Motivation
When you edit a node and make changes to any fields that are sent in the article to Apple News, those changes are not included until you save again.
The reason for this is that in applenews_op, the call to applenews_entity_export passes along the entity_type and entity_id, and not the entity object which has the latest information. applenew_entity_export then calls entity_load_single, which will fetch the entity without the changes. The exporter then works with this old copy of the entity and fails to push the changes to Apple News.
Proposed resolution
Change the function signature of applenews_entity_export to accept an entity object as a paramater and shift responsibility to the caller to load the entity object if need be.
Remaining tasks
I can haz code?
User interface changes
None.
API changes
Changing the signature of applenews_entity_export
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2846096-node_update_bug-2.patch | 2.49 KB | m4olivei |
Comments
Comment #2
m4oliveiPatch attached.
Comment #4
m4oliveiMerged to 7.x-2.x