1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 16:26:59 +02:00
This commit is contained in:
Ryan Cramer
2023-08-01 11:15:30 -04:00
parent df08140712
commit 1271fa684a

View File

@@ -48,7 +48,7 @@ class PageValues extends Wire {
$index = rtrim($index, ']');
if(ctype_digit($index)) $index = (int) $index;
}
if($value instanceof Page) {
if($value instanceof Page && !in_array($key, $wireArrayProperties)) {
// value is a Page
if(isset(PageProperties::$traversalReturnTypes[$k])) {
// traversal property: Page or PageArray