mirror of
https://github.com/processwire/processwire.git
synced 2025-08-09 16:26:59 +02:00
Update for processwire/processwire-issues#1793
This commit is contained in:
@@ -2176,6 +2176,13 @@ class PageFinder extends Wire {
|
||||
}
|
||||
$sql .= ")";
|
||||
}
|
||||
if($ft instanceof FieldtypeMulti && !$ft->isEmptyValue($field, $value)) {
|
||||
// when a multi-row field is in use, exclude match when any of the rows contain $value
|
||||
$tableMulti = $table . "__multi$tableCnt";
|
||||
$bindKey = $query->bindValueGetKey($value);
|
||||
$query->leftjoin("$table AS $tableMulti ON $tableMulti.pages_id=pages.id AND $tableMulti.$col=$bindKey");
|
||||
$query->where("$tableMulti.$col IS NULL");
|
||||
}
|
||||
|
||||
} else if($operator == '<' || $operator == '<=') {
|
||||
// less than
|
||||
|
Reference in New Issue
Block a user