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']; $root['items'] = $folder['items'];
$fl = array(); $fl = [
$fl['identifier'] = 'id'; 'identifier' => 'id',
$fl['label'] = 'name'; 'label' => 'name',
$fl['items'] = array($root); 'items' => [$root]
];
print json_encode($fl); print json_encode($fl);
} }