Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit ae2eb99

Browse files
committed
Fix recursive listing broken by defaultOrderField mechanism.
1 parent 8529fae commit ae2eb99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/plugins/access.fs/class.fsAccessDriver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,9 @@ public function switchAction($action, $httpVars, $fileVars)
10481048
} else $nodeType = "f";
10491049
}
10501050
// There is a special sorting, cancel the reordering of files & folders.
1051-
if(isSet($orderField) && $orderField != "ajxp_label") $nodeType = "f";
1051+
if(isSet($orderField) && $orderField != "ajxp_label" && !(isSet($httpVars["recursive"]) && $httpVars["recursive"] == "true" )) {
1052+
$nodeType = "f";
1053+
}
10521054

10531055
if($this->repository->hasContentFilter()){
10541056
$externalPath = $this->repository->getContentFilter()->externalPath($node);

0 commit comments

Comments
 (0)