Fix filtering by pagestate when also filtering by page type

This commit is contained in:
Flavio Copes
2015-09-09 22:03:28 +02:00
parent 768db4b855
commit aa625fcfc5

View File

@@ -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