Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGregory Chalenko <gregory.chalenko@zabbix.com>2021-05-10 11:56:24 +0300
committerGregory Chalenko <gregory.chalenko@zabbix.com>2021-05-10 11:56:24 +0300
commit42f8a950f96ced3b033ed0cc564e934917dc862f (patch)
treee1fa40be479103e2e27972be2c184a91de2fca13 /ui
parent21d8fe23e63d9a73fb81bd16a76954c0c7a2e6f8 (diff)
A......... [ZBXNEXT-114,ZBXNEXT-6572] added API_NOT_EMPTY
Diffstat (limited to 'ui')
-rw-r--r--ui/include/classes/api/services/CValueMap.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/include/classes/api/services/CValueMap.php b/ui/include/classes/api/services/CValueMap.php
index 4009418cee1..ba7c1ce7594 100644
--- a/ui/include/classes/api/services/CValueMap.php
+++ b/ui/include/classes/api/services/CValueMap.php
@@ -354,17 +354,17 @@ class CValueMap extends CApiService {
],
[
'if' => ['field' => 'type', 'in' => implode(',', [VALUEMAP_MAPPING_TYPE_GREATER_EQUAL, VALUEMAP_MAPPING_TYPE_LESS_EQUAL])],
- 'type' => API_FLOAT,
+ 'type' => API_FLOAT | API_NOT_EMPTY,
'length' => DB::getFieldLength('valuemap_mapping', 'value')
],
[
'if' => ['field' => 'type', 'in' => implode(',', [VALUEMAP_MAPPING_TYPE_IN_RANGE])],
- 'type' => API_NUMERIC_RANGES,
+ 'type' => API_NUMERIC_RANGES | API_NOT_EMPTY,
'length' => DB::getFieldLength('valuemap_mapping', 'value')
],
[
'if' => ['field' => 'type', 'in' => implode(',', [VALUEMAP_MAPPING_TYPE_REGEXP])],
- 'type' => API_REGEX,
+ 'type' => API_REGEX | API_NOT_EMPTY,
'length' => DB::getFieldLength('valuemap_mapping', 'value')
],
[
@@ -430,17 +430,17 @@ class CValueMap extends CApiService {
],
[
'if' => ['field' => 'type', 'in' => implode(',', [VALUEMAP_MAPPING_TYPE_GREATER_EQUAL, VALUEMAP_MAPPING_TYPE_LESS_EQUAL])],
- 'type' => API_FLOAT,
+ 'type' => API_FLOAT | API_NOT_EMPTY,
'length' => DB::getFieldLength('valuemap_mapping', 'value')
],
[
'if' => ['field' => 'type', 'in' => implode(',', [VALUEMAP_MAPPING_TYPE_IN_RANGE])],
- 'type' => API_NUMERIC_RANGES,
+ 'type' => API_NUMERIC_RANGES | API_NOT_EMPTY,
'length' => DB::getFieldLength('valuemap_mapping', 'value')
],
[
'if' => ['field' => 'type', 'in' => implode(',', [VALUEMAP_MAPPING_TYPE_REGEXP])],
- 'type' => API_REGEX,
+ 'type' => API_REGEX | API_NOT_EMPTY,
'length' => DB::getFieldLength('valuemap_mapping', 'value')
],
[