mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 17:24:46 +02:00
Fix issue processwire/processwire-issues#1675
This commit is contained in:
@@ -1613,7 +1613,7 @@ class WireArray extends Wire implements \IteratorAggregate, \ArrayAccess, \Count
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$value = $this->getItemPropertyValue($item, $selector->field);
|
$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])) {
|
if($not === $selector->matches($value) && isset($this->data[$key])) {
|
||||||
$qtyMatch++;
|
$qtyMatch++;
|
||||||
|
Reference in New Issue
Block a user