File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ public static function getCategoryTree(): array {
132
132
'SELECT ' => [
133
133
'id ' ,
134
134
'name ' ,
135
+ 'comment ' ,
135
136
"$ categoryFk as parent " ,
136
137
'level ' ,
137
138
new QueryExpression (
Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ public static function getCategoryTree() {
129
129
'SELECT ' => [
130
130
KnowbaseItemCategory::getTableField ('id ' ),
131
131
KnowbaseItemCategory::getTableField ('name ' ),
132
+ KnowbaseItemCategory::getTableField ('comment ' ),
132
133
KnowbaseItemCategory::getTableField ($ cat_fk ),
133
134
$ items_subquery ,
134
135
],
Original file line number Diff line number Diff line change @@ -343,7 +343,8 @@ function buildKbCategoryList(tree) {
343
343
if ( tree . id != 0 ) {
344
344
html += '<a href="#" data-parent-category-id="' + tree . parent + '"'
345
345
+ ' data-category-id="' + tree . id + '"'
346
- + ' onclick="plugin_formcreator.updateKbitemsView(this)">'
346
+ + ' onclick="plugin_formcreator.updateKbitemsView(this)"'
347
+ + ' title="' + tree . comment + '">'
347
348
+ tree . name
348
349
+ '</a>' ;
349
350
}
@@ -364,7 +365,7 @@ function buildCategoryList(tree) {
364
365
html = '<a href="#" data-parent-category-id="' + tree . parent + '"'
365
366
+ ' data-category-id="' + tree . id + '"'
366
367
+ ' onclick="plugin_formcreator.updateWizardFormsView(this)"'
367
- + 'title="' + tree . name + '">'
368
+ + ' title="' + tree . comment + '">'
368
369
+ tree . name
369
370
+ '</a>' ;
370
371
}
You can’t perform that action at this time.
0 commit comments