Skip to content

Commit

Permalink
Fix post tag undo using wrong current tags data
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Feb 19, 2017
1 parent f22bdba commit 3d2d01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/post/tag_methods.rb
Expand Up @@ -58,7 +58,7 @@ def self.included(m)
end

def cached_tags_undo(change, redo_changes = false)
current_tags = cached_tags.scan(/\S+/)
current_tags = new_tags || cached_tags.scan(/\S+/)
prev = change.previous

change, prev = prev, change if redo_changes
Expand Down

0 comments on commit 3d2d01b

Please sign in to comment.