mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-04 20:36:03 +01:00
Fix filtering by pagestate when also filtering by page type
This commit is contained in:
@@ -430,9 +430,10 @@ class AdminController
|
||||
if (in_array('routable', $flags))
|
||||
$collection = $collection->routable();
|
||||
}
|
||||
|
||||
foreach ($pageStates as $pageState) {
|
||||
unset($flags[$pageState]);
|
||||
if (($pageState = array_search($pageState, $flags)) !== false) {
|
||||
unset($flags[$pageState]);
|
||||
}
|
||||
}
|
||||
|
||||
// Filter by page type
|
||||
|
||||
Reference in New Issue
Block a user