From 83732e75d45b63e97981421a74946839a5f91d89 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 22 Feb 2024 09:51:23 -0700 Subject: [PATCH] Et2TreeDropdownCategory: Fix missing sort order --- api/src/Etemplate/Widget/Tree.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Tree.php b/api/src/Etemplate/Widget/Tree.php index 20066416f3..f0943c66e7 100644 --- a/api/src/Etemplate/Widget/Tree.php +++ b/api/src/Etemplate/Widget/Tree.php @@ -517,7 +517,7 @@ class Tree extends Etemplate\Widget protected static function processCategory($cat_id, &$options, &$categories, $globals, &$cat_id_list) { - foreach((array)$categories->return_array($cat_id ? 'subs' : 'mains', 0, false, '', 'ASC', '', $globals, $cat_id) as $cat) + foreach((array)$categories->return_array($cat_id ? 'subs' : 'mains', 0, false, '', 'ASC', 'name', $globals, $cat_id) as $cat) { $s = stripslashes($cat['name']); @@ -551,4 +551,9 @@ class Tree extends Etemplate\Widget $options[] = $category; } } + + public static function ajaxSearch($search, $options) + { + + } } \ No newline at end of file