Source
28
28
$page['file'] = 'actionconf.php';
29
29
$page['scripts'] = ['popup.condition.common.js', 'popup.operation.common.js'];
30
30
31
31
require_once dirname(__FILE__).'/include/page_header.php';
32
32
// VAR TYPE OPTIONAL FLAGS VALIDATION EXCEPTION
33
33
$fields = [
34
34
'actionid' => [T_ZBX_INT, O_OPT, P_SYS, DB_ID, 'isset({form}) && {form} == "update"'],
35
35
'name' => [T_ZBX_STR, O_OPT, null, NOT_EMPTY, 'isset({add}) || isset({update})',
36
36
_('Name')
37
37
],
38
-
'eventsource' => [T_ZBX_INT, O_OPT, null,
38
+
'eventsource' => [T_ZBX_INT, O_OPT, P_SYS,
39
39
IN([EVENT_SOURCE_TRIGGERS, EVENT_SOURCE_DISCOVERY,
40
40
EVENT_SOURCE_AUTOREGISTRATION, EVENT_SOURCE_INTERNAL,
41
41
EVENT_SOURCE_SERVICE
42
42
]),
43
43
null
44
44
],
45
45
'evaltype' => [T_ZBX_INT, O_OPT, null,
46
46
IN([CONDITION_EVAL_TYPE_AND_OR, CONDITION_EVAL_TYPE_AND,
47
47
CONDITION_EVAL_TYPE_OR, CONDITION_EVAL_TYPE_EXPRESSION
48
48
]),