fabrica-collaborative-editing icon indicating copy to clipboard operation
fabrica-collaborative-editing copied to clipboard

after refresh

Open Surgeonito opened this issue 6 years ago • 1 comments

There is a case when the plugin is not working properly.

When user A saves and after his admin edit panel is fully refreshed and THEN user B updates - all is ok.

But when two users are editing the post and both of them will press 'Update' at the same time - one of them will get this : edit post multisite wordpress

user B has taken over and is currently editing. Your latest changes were saved as a revision.

Surgeonito avatar Sep 17 '18 11:09 Surgeonito

I checked the parameters' set send with this heartbeat request and there was no 'fce' field, so the \Fabrica\CollaborativeEditing\Base::filterHeartbeatResponse method is not doing what it is supposed to do.

Somehow the code wp.heartbeat.enqueue('fce', { 'post_id' : jQuery('#post_ID').val() }, true); in \wp-content\plugins\fabrica-collaborative-editing\js\post.js takes no effect.

Surgeonito avatar Sep 18 '18 11:09 Surgeonito