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/CControllerServiceUpdate.php')
-rw-r--r--ui/app/controllers/CControllerServiceUpdate.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/app/controllers/CControllerServiceUpdate.php b/ui/app/controllers/CControllerServiceUpdate.php
index 73121b11ea0..41988240ad7 100644
--- a/ui/app/controllers/CControllerServiceUpdate.php
+++ b/ui/app/controllers/CControllerServiceUpdate.php
@@ -21,6 +21,10 @@
class CControllerServiceUpdate extends CController {
+ protected function init() {
+ $this->setPostContentType(self::POST_CONTENT_TYPE_JSON);
+ }
+
protected function checkInput(): bool {
$fields = [
'serviceid' => 'required|db services.serviceid',