* fix bug #15215.
This commit is contained in:
@@ -672,6 +672,8 @@ class mailModel extends model
|
||||
*/
|
||||
public function sendmail($objectID, $actionID)
|
||||
{
|
||||
if(empty($objectID) or empty($actionID)) return;
|
||||
|
||||
/* Load module and get vars. */
|
||||
$this->loadModel('action');
|
||||
$users = $this->loadModel('user')->getPairs('noletter');
|
||||
|
||||
@@ -696,7 +696,7 @@ class testcase extends control
|
||||
$this->view->isLibCase = $isLibCase;
|
||||
$this->view->caseFails = $caseFails;
|
||||
|
||||
if(defined('RUN_MODE') && RUN_MODE == 'api') return $this->send(array('status' => 'success', 'case' => $case));
|
||||
if(defined('RUN_MODE') and RUN_MODE == 'api' and !empty($this->app->version)) return $this->send(array('status' => 'success', 'case' => $case));
|
||||
$this->display();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user