simplify resulting tree root object

This commit is contained in:
Andrew Dolgov
2024-11-23 18:15:18 +03:00
parent 6bc9097b0f
commit 1ce1aee40f

View File

@@ -286,10 +286,11 @@ class Pref_Filters extends Handler_Protected {
$root['items'] = $folder['items'];
$fl = array();
$fl['identifier'] = 'id';
$fl['label'] = 'name';
$fl['items'] = array($root);
$fl = [
'identifier' => 'id',
'label' => 'name',
'items' => [$root]
];
print json_encode($fl);
}