FIX: Missing post revision when editing the first post.

This commit is contained in:
Guo Xiang Tan
2019-05-17 12:54:27 +08:00
parent e2444e0d31
commit 834c86678f
2 changed files with 3 additions and 1 deletions

View File

@ -330,6 +330,7 @@ class TopicsController < ApplicationController
changes.delete(:title) if topic.title == changes[:title]
changes.delete(:category_id) if topic.category_id.to_i == changes[:category_id].to_i
changes.delete(:tags_empty_array) if !topic.tags.exists?
success = true