Commit 7c59bfed authored by NGPixel's avatar NGPixel

fix: browse tree ancestors not converted in mariadb

parent e0a04346
......@@ -227,7 +227,7 @@ module.exports = {
} else {
builder.where('parent', args.parent)
if (args.includeAncestors && curPage && curPage.ancestors.length > 0) {
builder.orWhereIn('id', curPage.ancestors)
builder.orWhereIn('id', _.isString(curPage.ancestors) ? JSON.parse(curPage.ancestors) : curPage.ancestors)
}
}
}).orderBy([{ column: 'isFolder', order: 'desc' }, 'title'])
......
......@@ -323,7 +323,9 @@ module.exports = () => {
kind: 'link',
label: 'Home',
target: '/',
targetType: 'home'
targetType: 'home',
visibilityMode: 'all',
visibilityGroups: null
}
]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment