Edit a category and then cancel immediately.
If you followed category before editing, it will now show you aren’t following anymore.
1 Like
notification_level
is unset when the category
object is serialized and transferred to the browser. Setting it in categories_controller.rb
fixes the issue. Like so.
def show
if Category.topic_create_allowed(guardian).where(id: @category.id).exists?
@category.permission = CategoryGroup.permission_types[:full]
end
-> @category.notification_level = CategoryUser.where(category: @category.id).first.notification_level**
render_serialized(@category, CategorySerializer)`
end
@sam?
Perhaps submit a PR to fix?
Sure. just got a bit nervous being a first timer.
1 Like
I’m reporting issues with pleasure, but unfortunately not able to fix them as I do not run dev instance of Discourse locally.
3 Likes
Fixed with:
https://github.com/discourse/discourse/pull/3911
thanks @tgxworld.
3 Likes
This topic was automatically closed after 2 days. New replies are no longer allowed.