Advance draft sequence in PostRevisor if edit contains no changes

Simplest version of the server-side fix for
https://meta.discourse.org/t/draft-not-cleared-properly-when-empty-edit-
of-post-is-saved/40939
This commit is contained in:
Angus McLeod 2016-03-14 20:31:50 -04:00
parent dab6b9ba6e
commit 91a2750084
1 changed files with 1 additions and 0 deletions

View File

@ -154,6 +154,7 @@ class PostRevisor
POST_TRACKED_FIELDS.each do |field|
return true if @fields.has_key?(field) && @fields[field] != @post.send(field)
end
advance_draft_sequence
false
end