1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-25 07:41:30 +02:00

Fix "OR-condition not allowed" error introduced from a change related to processwire/processwire-issues#1428

This commit is contained in:
Ryan Cramer
2021-08-22 08:25:45 -04:00
parent 1043e73ab8
commit 9ba7844a5d
2 changed files with 19 additions and 6 deletions

View File

@@ -397,7 +397,7 @@ class InputfieldSelector extends Inputfield implements ConfigurableModule {
'page' => array('@=', '@!='),
'checkbox' => array('=', '!='),
'sort' => array('.=', '.=-'),
'status' => array('@=', '@!='),
'status' => array('@=', '@!=', '<', '<=', '>', '>='),
//'selector' => array('#=', '#!='),
'selector' => array('=', '!=', '<', '>', '<=', '>='),
);
@@ -523,7 +523,7 @@ class InputfieldSelector extends Inputfield implements ConfigurableModule {
'temp' => $this->_('Temp'),
),
'sanitizer' => 'integer',
'operators' => array('@=', '@!='),
'operators' => $this->operatorsByType['status'],
),
'template' => array(
'input' => 'select',