mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: couldn't uncategorize a topic
This commit is contained in:
@ -133,7 +133,7 @@ class TopicsController < ApplicationController
|
||||
end
|
||||
|
||||
changes.delete(:title) if topic.title == changes[:title]
|
||||
changes.delete(:category_id) if (changes[:category_id].blank? or topic.category_id == changes[:category_id].to_i)
|
||||
changes.delete(:category_id) if topic.category_id == changes[:category_id].to_i
|
||||
|
||||
success = true
|
||||
if changes.length > 0
|
||||
|
Reference in New Issue
Block a user