Skip to content

Commit

Permalink
fix(category): completename rendered instead of short name
Browse files Browse the repository at this point in the history
fix #2424

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Oct 22, 2021
1 parent 859da33 commit 82f50cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/category.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public static function getCategoryTree($rootId = 0, $helpdeskHome = false) : arr

$categories = [];
foreach ($result as $category) {
$category['name'] = Dropdown::getDropdownName($cat_table, $category['id'], 0, true, false);
$category['name'] = (new DbUtils)->getTreeLeafValueName($cat_table, $category['id'], false, true);
// Keep the short name only
// If a symbol > exists in a name, it is saved as an html entity, making the following reliable
$split = explode(' > ', $category['name']);
Expand Down

0 comments on commit 82f50cc

Please sign in to comment.