Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.3.2
-
Fix Version/s: 2.3.3
-
Component/s: Filepicker
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_23_STABLE
-
Fixed Branches:MOODLE_23_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-35664-master -
Pull Master Diff URL:
Description
When viewing (not in tree view) a repository (Dropbox for example) and browsing into some subdirectories, clicking the refresh button will reload the root of the repository.
From what I have seen, the file picker is not storing the current path anywhere.
Also, when requesting the next page, the path sent back to repository_ajax is undefined.
And later on the following test will fail because the obj.path is the breadcrumb and scope.path is undefined:
// repository/filepicker.js:1036
|
if (scope.active_repo.hasmorepages && obj.list && obj.page &&
|
obj.repo_id == scope.active_repo.id &&
|
obj.page == scope.active_repo.page+1 && obj.path == scope.path) {
|
scope.parse_repository_options(obj, true);
|
scope.view_files(obj.list)
|
}
|
(I am not sure how this can be handled in the tree view.)