mirror of
https://github.com/processwire/processwire.git
synced 2025-08-22 06:13:57 +02:00
Various fixes and improvements related to Selectors and the find operators
This commit is contained in:
@@ -134,7 +134,7 @@ class FieldtypeText extends Fieldtype {
|
||||
/**
|
||||
* Update a query to match the text with a fulltext index
|
||||
*
|
||||
* @param DatabaseQuerySelect $query
|
||||
* @param PageFinderDatabaseQuerySelect $query
|
||||
* @param string $table
|
||||
* @param string $subfield
|
||||
* @param string $operator
|
||||
@@ -143,8 +143,7 @@ class FieldtypeText extends Fieldtype {
|
||||
*
|
||||
*/
|
||||
public function getMatchQuery($query, $table, $subfield, $operator, $value) {
|
||||
/** @var DatabaseQuerySelectFulltext $ft */
|
||||
$ft = $this->wire(new DatabaseQuerySelectFulltext($query));
|
||||
$ft = new DatabaseQuerySelectFulltext($query);
|
||||
$ft->match($table, $subfield, $operator, $value);
|
||||
return $query;
|
||||
}
|
||||
|
Reference in New Issue
Block a user