mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FIX: Ensure form_template_ids
is defined on new category records (#20610)
Navigating to the topic template tab on a new category form resulted in exceptions because the `form_template_ids` property was undefined. This fix sets the `form_template_ids` property on new category records.
This commit is contained in:
parent
2d0ad48dd1
commit
0603bd57df
|
@ -33,6 +33,7 @@ export default DiscourseRoute.extend({
|
|||
custom_fields: {},
|
||||
search_priority: SEARCH_PRIORITIES.normal,
|
||||
required_tag_groups: [],
|
||||
form_template_ids: [],
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -22,6 +22,11 @@ acceptance("Category New", function (needs) {
|
|||
await fillIn("input.category-name", "testing");
|
||||
assert.strictEqual(query(".badge-category").innerText, "testing");
|
||||
|
||||
await click(".edit-category-nav .edit-category-topic-template a");
|
||||
assert
|
||||
.dom(".edit-category-tab-topic-template")
|
||||
.isVisible("it can switch to topic template tab");
|
||||
|
||||
await click(".edit-category-nav .edit-category-tags a");
|
||||
await click("button.add-required-tag-group");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user