mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Fetch categories for "+subcategories" option (#26622)
Selecting the +subcategories option does not work sometimes when "lazy load categories" is enabled because the subcategories may not be fetched. This ensures that subcategories are loaded by requesting them before being used.
This commit is contained in:
@@ -84,6 +84,12 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"subcategory_count": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"sort_order": {
|
||||
"type": [
|
||||
"string",
|
||||
@@ -287,6 +293,7 @@
|
||||
"can_edit",
|
||||
"topic_template",
|
||||
"has_children",
|
||||
"subcategory_count",
|
||||
"sort_order",
|
||||
"sort_ascending",
|
||||
"show_subcategory_list",
|
||||
|
||||
@@ -78,6 +78,12 @@
|
||||
"has_children": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"subcategory_count": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"sort_order": {
|
||||
"type": [
|
||||
"string",
|
||||
@@ -194,6 +200,7 @@
|
||||
"can_edit",
|
||||
"topic_template",
|
||||
"has_children",
|
||||
"subcategory_count",
|
||||
"sort_order",
|
||||
"sort_ascending",
|
||||
"show_subcategory_list",
|
||||
|
||||
@@ -87,6 +87,12 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"subcategory_count": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"sort_order": {
|
||||
"type": [
|
||||
"string",
|
||||
@@ -291,6 +297,7 @@
|
||||
"topic_template",
|
||||
"form_template_ids",
|
||||
"has_children",
|
||||
"subcategory_count",
|
||||
"sort_order",
|
||||
"sort_ascending",
|
||||
"show_subcategory_list",
|
||||
|
||||
@@ -603,6 +603,12 @@
|
||||
"has_children": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"subcategory_count": {
|
||||
"type": [
|
||||
"integer",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"sort_order": {
|
||||
"type": [
|
||||
"string",
|
||||
@@ -740,6 +746,7 @@
|
||||
"notification_level",
|
||||
"topic_template",
|
||||
"has_children",
|
||||
"subcategory_count",
|
||||
"sort_order",
|
||||
"sort_ascending",
|
||||
"show_subcategory_list",
|
||||
|
||||
Reference in New Issue
Block a user