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
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/controllers/CControllerScriptEdit.php')
-rw-r--r--ui/app/controllers/CControllerScriptEdit.php4
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]);
+ }
}
}