mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 16:54:44 +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)) {
|
if(is_array($selector->field)) {
|
||||||
$value = array();
|
$value = array();
|
||||||
foreach($selector->field as $field) {
|
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 {
|
} 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])) {
|
if($not === $selector->matches($value) && isset($this->data[$key])) {
|
||||||
$qtyMatch++;
|
$qtyMatch++;
|
||||||
|
Reference in New Issue
Block a user