Autosave collision detection messaging never gets displayed to the editor.
|Reported by:||IAmWilliamWallace||Owned by:|
The message "Autosave disabled: (user) is currently editing this post." is being over written by a previous autosave message so the editor never sees the autosave error.
Steps to reproduce:
Editor A: Creates a new post and starts adding content.("A" has lock)
Editor B: Starts editing the same post and clicks save draft ("B" has lock)
Editor A: continues to make changes and autosave fires. At this point editor B has the lock and the autosave will fail and be disabled but the message is not apparent because the error will be overwritten with the default autosave message "Last edit by "
To fix this, the autosave messages (not errors) need to be in the control statement if ( !res.errors )
The problem existed in versions before 3.2 but this patch is for >= 3.2 since the autosave css class names changed.