1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-08 07:47:00 +02:00

Fix option order issue in $pages->getByIDs() method

This commit is contained in:
Ryan Cramer
2024-11-15 14:26:40 -05:00
parent 5a8732f1e1
commit ec8943c26d

View File

@@ -757,8 +757,8 @@ class Pages extends Wire {
}
if(!empty($options['parent_id'])) {
unset($options['parent_id']);
$parent_id = (int) $options['parent_id'];
unset($options['parent_id']);
} else if($parent) {
unset($options['parent']);
if($parent instanceof Page) {