diff options
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/controllers/CControllerScriptEdit.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/app/controllers/CControllerScriptEdit.php b/ui/app/controllers/CControllerScriptEdit.php index e991cba5a68..7648e6958e3 100644 --- a/ui/app/controllers/CControllerScriptEdit.php +++ b/ui/app/controllers/CControllerScriptEdit.php @@ -156,6 +156,10 @@ class CControllerScriptEdit extends CController { $data['menu_path'] = $script['menu_path']; $data['parameters'] = $script['parameters']; $data['actions'] = $script['actions']; + + if ($data['type'] == ZBX_SCRIPT_TYPE_WEBHOOK) { + CArrayHelper::sort($data['parameters'], ['field' => 'name', 'order' => ZBX_SORT_UP]); + } } } |