Merged in luisfernandosl/processmaker/HOR-1014-A-3019 (pull request #4255)

HOR-1014-A
This commit is contained in:
Julio Cesar Laura Avendaño
2016-05-20 13:25:06 -04:00
2 changed files with 72 additions and 4 deletions

View File

@@ -1501,12 +1501,12 @@ class Light extends Api
*
* @url GET /:app_uid/variables
*/
public function doGetCaseVariables($app_uid)
public function doGetCaseVariables($app_uid, $dyn_uid = null)
{
try {
$usr_uid = $this->getUserId();
$cases = new \ProcessMaker\BusinessModel\Cases();
$response = $cases->getCaseVariables($app_uid, $usr_uid);
$response = $cases->getCaseVariables($app_uid, $usr_uid, $dyn_uid);
return DateTime::convertUtcToTimeZone($response);
} catch (\Exception $e) {
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));