mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
FIX: Descriptions were blank for uncategorized in hamburger menu
This commit is contained in:
parent
9e3fc1111d
commit
fe7bb62387
@ -43,6 +43,10 @@ class BasicCategorySerializer < ApplicationSerializer
|
||||
object.uncategorized? ? I18n.t('uncategorized_category_name', locale: SiteSetting.default_locale) : object.name
|
||||
end
|
||||
|
||||
def description_text
|
||||
object.uncategorized? ? I18n.t('category.uncategorized_description', locale: SiteSetting.default_locale) : object.description_text
|
||||
end
|
||||
|
||||
def description
|
||||
object.uncategorized? ? I18n.t('category.uncategorized_description', locale: SiteSetting.default_locale) : object.description
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user