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/CControllerDashboardWidgetsSanitize.php')
-rw-r--r--ui/app/controllers/CControllerDashboardWidgetsSanitize.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/controllers/CControllerDashboardWidgetsSanitize.php b/ui/app/controllers/CControllerDashboardWidgetsSanitize.php
index 597e31c9a40..1190ade7fb1 100644
--- a/ui/app/controllers/CControllerDashboardWidgetsSanitize.php
+++ b/ui/app/controllers/CControllerDashboardWidgetsSanitize.php
@@ -27,10 +27,14 @@ class CControllerDashboardWidgetsSanitize extends CController {
private $context;
private $widgets = [];
+ protected function init() {
+ $this->setPostContentType(self::POST_CONTENT_TYPE_JSON);
+ }
+
protected function checkInput() {
$fields = [
- 'templateid' => 'db dashboard.templateid',
- 'widgets' => 'array'
+ 'templateid' => 'db dashboard.templateid',
+ 'widgets' => 'array'
];
$ret = $this->validateInput($fields);