mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 08:17:12 +02:00
Fix issue processwire/processwire-issues#1669
This commit is contained in:
@@ -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++;
|
||||
|
Reference in New Issue
Block a user