FIX: editing a PM should never change the category_id

This commit is contained in:
Régis Hanol 2015-02-17 23:10:34 +01:00
parent 762e60c0a6
commit 59da28bda4
1 changed files with 3 additions and 0 deletions

View File

@ -365,6 +365,9 @@ Topic.reopenClass({
delete props.categoryId;
}
// Make sure we never change the category for private messages
if (topic.get("isPrivateMessage")) { delete props.category_id; }
// Annoyingly, empty arrays are not sent across the wire. This
// allows us to make a distinction between arrays that were not
// sent and arrays that we specifically want to be empty.