diff options
Diffstat (limited to 'ui/app/controllers/CControllerServiceUpdate.php')
-rw-r--r-- | ui/app/controllers/CControllerServiceUpdate.php | 4 |
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', |