mirror of
https://github.com/nextcloud/server.git
synced 2026-03-23 10:54:41 -04:00
fix '' to '/' when determining parent for search result
This commit is contained in:
parent
6c174813b6
commit
0e2f51bbb8
1 changed files with 3 additions and 0 deletions
|
|
@ -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 = '/';
|
||||
|
|
|
|||
Loading…
Reference in a new issue