[Pkg-owncloud-commits] [owncloud] 18/70: fix '' to '/' when determining parent for search result
David Prévot
taffit at moszumanska.debian.org
Mon Jul 14 17:38:03 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 0a4e95cc07f5e6d8dc6e50ecdaffd0b68999a834
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date: Thu Jul 3 16:02:20 2014 +0200
fix '' to '/' when determining parent for search result
---
search/js/result.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/search/js/result.js b/search/js/result.js
index 04e999c..857b4fe 100644
--- a/search/js/result.js
+++ b/search/js/result.js
@@ -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 = '/';
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list