Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Send all fields when transmitting an autosave. #7092
merges the post object with toSend before sending the autosave, ensuring that unedited fields are sent with their current values.
How has this been tested?
Create a post and publish it.
I found that altering the original object sets up an infinite save loop, to avoid this I create a new object to send to autosaves and leave toSend untouched.
This was referenced
Jun 1, 2018
@adamsilverstein I just pushed d10a64e which accounts for all of my feedback. The request body accounts for both the fields from the current post, but preferring values from
Otherwise there may be some edge cases where e.g. post is autosaved (
I don't know that that needs to be addressed as part of this pull request specifically.