fixes #2920: "Undo" function not working for Post Versions
This commit is contained in:
@@ -205,8 +205,8 @@ class PostArchive < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def undo
|
||||
added = changes[:added_tags_with_fields] - changes[:obsolete_added_tags]
|
||||
removed = changes[:removed_tags_with_fields] - changes[:obsolete_removed_tags]
|
||||
added = changes[:added_tags] - changes[:obsolete_added_tags]
|
||||
removed = changes[:removed_tags] - changes[:obsolete_removed_tags]
|
||||
|
||||
added.each do |tag|
|
||||
if tag =~ /^source:/
|
||||
|
||||
Reference in New Issue
Block a user