mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 02:34:24 +02:00
Fix issue processwire/processwire-issues#1270
This commit is contained in:
@@ -187,14 +187,13 @@ abstract class Selector extends WireData {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function __construct($field, $value) {
|
public function __construct($field, $value) {
|
||||||
|
$this->set('not', false);
|
||||||
$this->setField($field);
|
|
||||||
$this->setValue($value);
|
|
||||||
$this->set('not', false);
|
|
||||||
$this->set('group', null); // group name identified with 'group_name@' before a field name
|
$this->set('group', null); // group name identified with 'group_name@' before a field name
|
||||||
$this->set('quote', ''); // if $value in quotes, this contains either: ', ", [, {, or (, indicating quote type (set by Selectors class)
|
$this->set('quote', ''); // if $value in quotes, this contains either: ', ", [, {, or (, indicating quote type (set by Selectors class)
|
||||||
$this->set('forceMatch', null); // boolean true to force match, false to force non-match
|
$this->set('forceMatch', null); // boolean true to force match, false to force non-match
|
||||||
parent::set('altOperators', array()); // optional alternate operators
|
parent::set('altOperators', array()); // optional alternate operators
|
||||||
|
$this->setField($field);
|
||||||
|
$this->setValue($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user