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

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.