PM-3374 "REST endpoint PUT cases/{app_uid}/execute-trigger/..." SOLVED

> Code Issue:
  REST: Endpoint PUT /api/1.0/{workspace}/cases/{app_uid}/execute-trigger/{trig_uid} allways return 200
> Solution:
  Se agrega validacion en el siguiente Endpoint cuando se utiliza el servicio REST, el mismo mostrara un mensaje cuando se
  ejecuta el trigger con status 200

PM-3374 "REST endpoint PUT cases/{app_uid}/execute-trigger/..." SOLVED
This commit is contained in:
Luis Fernando Saisa Lopez
2015-09-15 10:40:56 -04:00
parent d7f56f0940
commit f0c75ce4a7
2 changed files with 10 additions and 2 deletions

View File

@@ -932,7 +932,11 @@ class Cases
}
$case = new \wsBase();
$case->executeTrigger( $usr_uid, $app_uid, $tri_uid, $del_index );
$result = $case->executeTrigger($usr_uid, $app_uid, $tri_uid, $del_index);
if ($result->status_code != 0) {
throw new \Exception($result->message);
}
}
/**
@@ -1600,7 +1604,7 @@ class Cases
$_SESSION['APPLICATION'] = $app_uid;
$_SESSION['USER_LOGGED'] = $usr_uid;
$case = new \Cases();
$fields = $case->loadCase($app_uid);
$_POST['form'] = $app_data;