MDL-62415 repo_filepicker: Display search results in tree view

Disable overriding call to list all files in tree view and show search results instead
This commit is contained in:
Peter
2018-11-09 09:28:28 +08:00
parent 08c51ff080
commit 29cfe7a527
+1 -2
View File
@@ -265,9 +265,8 @@ YUI.add('moodle-core_filepicker', function(Y) {
if (root.path == mytreeel.path) {
root.origpath = options.filepath;
root.origlist = fileslist;
} else if (!root.isLeaf && root.expanded) {
Y.bind(options.treeview_dynload, options.callbackcontext)(root, null);
}
// Removed bind as of MDL-62415 as it overwrites the search tree results
}
}
} else {