mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-04 08:28:56 +08:00
Fix #54 - [Legacy] Add ranged search option for numeric fields
This commit is contained in:
parent
21efc02bfe
commit
82fd1eeaf8
1 changed files with 11 additions and 1 deletions
|
@ -28,7 +28,9 @@
|
|||
$filter_operator_map = [
|
||||
'default' => [
|
||||
'=' => [
|
||||
'{field}_{type}' => 'values'
|
||||
'{field}_{type}' => 'values',
|
||||
'{field}_{type}_range_choice' => '{operator}',
|
||||
'range_{field}_{type}' => '{target}'
|
||||
],
|
||||
'not_equal' => [
|
||||
'{field}_{type}_range_choice' => '{operator}',
|
||||
|
@ -44,10 +46,18 @@ $filter_operator_map = [
|
|||
'{field}_{type}_range_choice' => '{operator}',
|
||||
'range_{field}_{type}' => '{target}'
|
||||
],
|
||||
'greater_than_equals' => [
|
||||
'{field}_{type}_range_choice' => '{operator}',
|
||||
'range_{field}_{type}' => '{target}'
|
||||
],
|
||||
'less_than' => [
|
||||
'{field}_{type}_range_choice' => '{operator}',
|
||||
'range_{field}_{type}' => '{target}'
|
||||
],
|
||||
'less_than_equals' => [
|
||||
'{field}_{type}_range_choice' => '{operator}',
|
||||
'range_{field}_{type}' => '{target}'
|
||||
],
|
||||
'last_7_days' => [
|
||||
'{field}_{type}_range_choice' => '{operator}',
|
||||
'range_{field}_{type}' => '[{operator}]',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue