Et2TreeDropdownCategory: Fix missing sort order

This commit is contained in:
nathan 2024-02-22 09:51:23 -07:00
parent b5179cac22
commit 83732e75d4

View File

@ -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)
{
}
}