Oops, I thought I already replied to this topic.
Few days ago I was looking into this issue and was able to repro this consistently. In fact I can repro this right now here on meta!
Repro Steps:
- Click “Create a new category” button.
- Open “Settings” tab.
- Tick “Allow topic owner and staff to mark a reply as the solution” checkbox.
- Notice there will be an error in console.
I tried to fix this issue and was able to pinpoint the code causing this issue:
this.set("custom_fields.enable_accepted_answers", value);
^^ custom_fields is not defined when creating new category, however it is defined when editing the category.
I spent considerable time on this issue and was not sure how to fix this. ![]()
@eviltrout can you look into this?
Also related:
https://meta.discourse.org/t/discourse-solved-accepted-answer-plugin/30155/108?u=techapj