FIX: PMs were not allowed to be edited in some cases

This commit is contained in:
Arpit Jalan 2015-01-29 15:00:11 +05:30
parent d491d817a6
commit e8db47a1fe
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class TopicsController < ApplicationController
end end
changes.delete(:title) if topic.title == changes[:title] changes.delete(:title) if topic.title == changes[:title]
changes.delete(:category_id) if topic.category_id == changes[:category_id].to_i changes.delete(:category_id) if (changes[:category_id].empty? or topic.category_id == changes[:category_id].to_i)
success = true success = true
if changes.length > 0 if changes.length > 0