Merge pull request #8616 from annando/annando/issue8614

Order of filed items in saved folders seems to be random
This commit is contained in:
Hypolite Petovan 2020-05-09 20:10:57 -04:00 committed by GitHub
commit b2ce9601da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = [];