1
0
Fork 0

Order of filed items in saved folders seems to be random

Fixes #8614
This commit is contained in:
Michael 2020-05-09 18:47:56 +00:00
parent 5765b6f772
commit cd214102af

View file

@ -383,7 +383,7 @@ function networkFlatView(App $a, $update = 0)
if (strlen($file)) { if (strlen($file)) {
$item_params = ['order' => ['uri-id' => true]]; $item_params = ['order' => ['uri-id' => true]];
$term_condition = ['name' => $file, 'type' => Category::FILE, 'uid' => local_user()]; $term_condition = ['name' => $file, 'type' => Category::FILE, 'uid' => local_user()];
$term_params = ['order' => ['tid' => true], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]]; $term_params = ['order' => ['uri-id' => true], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]];
$result = DBA::select('category-view', ['uri-id'], $term_condition, $term_params); $result = DBA::select('category-view', ['uri-id'], $term_condition, $term_params);
$posts = []; $posts = [];