mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed default collection ordering in pages admin
This commit is contained in:
parent
4464f29169
commit
26e4768bc5
|
|
@ -6,6 +6,7 @@
|
|||
2. [](#bugfix)
|
||||
* Fixed missing changes in yaml & markdown files if saved multiple times during the same second because of a caching issue
|
||||
* Fixed XSS check not detecting onX events without quotes
|
||||
* Fixed default collection ordering in pages admin
|
||||
|
||||
# v1.7.32
|
||||
## 03/28/2022
|
||||
|
|
|
|||
|
|
@ -612,7 +612,7 @@ class PageIndex extends FlexPageIndex implements PageCollectionInterface
|
|||
/** @var Header $header */
|
||||
$header = $page->header();
|
||||
|
||||
if (!$field && $header->get('admin.children_display_order') === 'collection' && ($orderby = $header->get('content.order.by'))) {
|
||||
if (!$field && $header->get('admin.children_display_order', 'collection') === 'collection' && ($orderby = $header->get('content.order.by'))) {
|
||||
// Use custom sorting by page header.
|
||||
$sortby = $orderby;
|
||||
$order = $header->get('content.order.dir', $order);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user