FIX: sets categoryId but do not scope when replying as new topic (#7002)

This commit is contained in:
Joffrey JAFFEUX
2019-02-13 15:19:58 +01:00
committed by GitHub
parent fe4254b8f3
commit 560cc4e73e
2 changed files with 12 additions and 2 deletions

View File

@ -242,6 +242,7 @@ export default DropdownSelectBoxComponent.extend({
replyAsNewTopicSelected(options) {
options.action = CREATE_TOPIC;
options.categoryId = this.get("composerModel.topic.category.id");
options.disableScopedCategory = true;
this._replyFromExisting(options, _postSnapshot, _topicSnapshot);
},
@ -295,7 +296,12 @@ export default DropdownSelectBoxComponent.extend({
if (this[action]) {
let model = this.get("composerModel");
this[action](
model.getProperties("draftKey", "draftSequence", "reply"),
model.getProperties(
"draftKey",
"draftSequence",
"reply",
"disableScopedCategory"
),
model
);
} else {