mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
FIX: editing a PM should never change the category_id
This commit is contained in:
parent
762e60c0a6
commit
59da28bda4
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue