From 36bb44e0a58bde6866d9ea99a4f6c847407d01aa Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 3 Feb 2023 08:15:43 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#1675 --- wire/core/WireArray.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/WireArray.php b/wire/core/WireArray.php index f09035e1..0f1fa0b7 100644 --- a/wire/core/WireArray.php +++ b/wire/core/WireArray.php @@ -1613,7 +1613,7 @@ class WireArray extends Wire implements \IteratorAggregate, \ArrayAccess, \Count } } else { $value = $this->getItemPropertyValue($item, $selector->field); - if(is_array($value)) $value = $this->wire()->sanitizer->flatArray($value); + $value = is_array($value) ? $this->wire()->sanitizer->flatArray($value) : (string) $value; } if($not === $selector->matches($value) && isset($this->data[$key])) { $qtyMatch++;