FIX: editing a PM should never change the category_id
This commit is contained in:
parent
762e60c0a6
commit
59da28bda4
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue