mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
fix '' to '/' when determining parent for search result
This commit is contained in:
@@ -72,6 +72,9 @@ OC.search.showResults=function(results){
|
||||
|
||||
if (type[i].path) {
|
||||
var parent = OC.dirname(type[i].path);
|
||||
if (parent === '') {
|
||||
parent = '/';
|
||||
}
|
||||
var containerName = OC.basename(parent);
|
||||
if (containerName === '') {
|
||||
containerName = '/';
|
||||
|
||||
Reference in New Issue
Block a user