diff --git a/modules/rest_api/controllers/services/rest.php b/modules/rest_api/controllers/services/rest.php index 1cd215f83a..443ea92fd1 100644 --- a/modules/rest_api/controllers/services/rest.php +++ b/modules/rest_api/controllers/services/rest.php @@ -639,8 +639,7 @@ public function __call($name, $arguments) { elseif ($this->method === 'POST') { $this->request = $_POST; } - - $methodName = lcfirst(ucwords($name, '-')) . ucfirst(strtolower($this->method)); + $methodName = lcfirst(str_replace('_', '', ucwords($name, '_'))) . ucfirst(strtolower($this->method)); $this->checkVersion($arguments); $requestForId = NULL;