mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 22:21:29 +00:00
fix preffiltertree layout being wrong
This commit is contained in:
@@ -125,12 +125,12 @@ class Pref_Filters extends Handler_Protected {
|
|||||||
|
|
||||||
if ($action_id != $line["action_id"]) {
|
if ($action_id != $line["action_id"]) {
|
||||||
if (count($folder['items']) > 0) {
|
if (count($folder['items']) > 0) {
|
||||||
$folder['id'] = $line["action_id"];
|
|
||||||
$folder['name'] = $line["action_name"];
|
|
||||||
|
|
||||||
array_push($root['items'], $folder);
|
array_push($root['items'], $folder);
|
||||||
}
|
}
|
||||||
|
|
||||||
$folder = array();
|
$folder = array();
|
||||||
|
$folder['id'] = $line["action_id"];
|
||||||
|
$folder['name'] = $line["action_name"];
|
||||||
$folder['items'] = array();
|
$folder['items'] = array();
|
||||||
$action_id = $line["action_id"];
|
$action_id = $line["action_id"];
|
||||||
}
|
}
|
||||||
@@ -148,6 +148,10 @@ class Pref_Filters extends Handler_Protected {
|
|||||||
array_push($folder['items'], $filter);
|
array_push($folder['items'], $filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (count($folder['items']) > 0) {
|
||||||
|
array_push($root['items'], $folder);
|
||||||
|
}
|
||||||
|
|
||||||
$fl = array();
|
$fl = array();
|
||||||
$fl['identifier'] = 'id';
|
$fl['identifier'] = 'id';
|
||||||
$fl['label'] = 'name';
|
$fl['label'] = 'name';
|
||||||
|
|||||||
Reference in New Issue
Block a user