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:
Bianca Nenciu
2024-04-25 16:47:45 +03:00
committed by GitHub
parent 2215fa0c8e
commit dbe923d26e
12 changed files with 89 additions and 40 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",

View File

@@ -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",