mirror of https://github.com/nextcloud/bookmarks
Fix TreeMapper#getChildren
see https://github.com/floccusaddon/floccus/issues/1408 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
f1a4dfe061
commit
20f7df2b48
|
@ -833,7 +833,7 @@ class TreeMapper extends QBMapper {
|
|||
}
|
||||
|
||||
if ($item['type'] === self::TYPE_BOOKMARK) {
|
||||
$item = array_merge(Bookmark::fromRow(array_intersect_key(array_flip(Bookmark::$columns), $child))->toArray(), $item);
|
||||
$item = array_merge(Bookmark::fromRow(array_intersect_key($child, array_flip(Bookmark::$columns)))->toArray(), $item);
|
||||
}
|
||||
|
||||
if ($item['type'] === self::TYPE_FOLDER && $layers !== 0) {
|
||||
|
|
Loading…
Reference in New Issue