* Fix bug #17944.
This commit is contained in:
@@ -74,13 +74,13 @@ class messageModel extends model
|
||||
{
|
||||
/* If it is an api call, get the request method set by the user. */
|
||||
global $config;
|
||||
$requestType = $this->config->requestType;
|
||||
if(defined('RUN_MODE') && RUN_MODE == 'api') include $this->app->getConfigRoot() . 'my.php';
|
||||
$requestType = $config->requestType;
|
||||
if(defined('RUN_MODE') and RUN_MODE == 'api') include $this->app->getConfigRoot() . 'config.php';
|
||||
|
||||
$moduleName = $objectType == 'case' ? 'testcase' : $objectType;
|
||||
$this->loadModel('mail')->sendmail($objectID, $actionID);
|
||||
|
||||
if(defined('RUN_MODE') && RUN_MODE == 'api') $this->config->requestType = $requestType;
|
||||
if(defined('RUN_MODE') and RUN_MODE == 'api') $config->requestType = $requestType;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user