1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 08:17:12 +02:00
This commit is contained in:
Ryan Cramer
2023-01-26 09:06:33 -05:00
parent 3094bd952a
commit 2ebb0055be

View File

@@ -1607,10 +1607,13 @@ class WireArray extends Wire implements \IteratorAggregate, \ArrayAccess, \Count
if(is_array($selector->field)) {
$value = array();
foreach($selector->field as $field) {
$value[] = (string) $this->getItemPropertyValue($item, $field);
$v = $this->getItemPropertyValue($item, $field);
if(is_array($v)) $v = implode(' ', $this->wire()->sanitizer->flatArray($v));
$value[] = (string) $v;
}
} else {
$value = (string) $this->getItemPropertyValue($item, $selector->field);
$value = $this->getItemPropertyValue($item, $selector->field);
if(is_array($value)) $value = $this->wire()->sanitizer->flatArray($value);
}
if($not === $selector->matches($value) && isset($this->data[$key])) {
$qtyMatch++;