HOR-1847 "Plugin BatchRouting> El plugin..."

This commit is contained in:
Luis Fernando Saisa Lopez
2016-09-21 14:55:56 -04:00
parent d1d9ae23ef
commit 10e1a3a4a4
2 changed files with 2 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ class Consolidated extends Api
try { try {
$usr_uid = $this->getUserId(); $usr_uid = $this->getUserId();
$consolidated = new \ProcessMaker\BusinessModel\Consolidated(); $consolidated = new \ProcessMaker\BusinessModel\Consolidated();
return $consolidated->postDerivate($app_uid, $app_number, $del_index, $usr_uid,$field_grid, $field_grid_val); return $consolidated->postDerivate($app_uid, $app_number, $del_index, $usr_uid,$field_grid, str_replace('__FRASL__', '/', $field_grid_val));
} catch (\Exception $e) { } catch (\Exception $e) {
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage())); throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
} }

View File

@@ -1307,7 +1307,7 @@ function ajaxDerivationRequest(appUid, delIndex, maxLenght, appNumber, fieldGrid
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': 'Bearer ' + credentials.access_token 'Authorization': 'Bearer ' + credentials.access_token
}, },
url: urlProxy + 'derivate/' + appUid + '/' + appNumber + '/' + delIndex + '/' + fieldGridGral + '/' + fieldGridGralVal + '/', url: urlProxy + 'derivate/' + appUid + '/' + appNumber + '/' + delIndex + '/' + fieldGridGral + '/' + stringReplace("\\x2F", "__FRASL__", fieldGridGralVal) + '/',
success: function(response) { success: function(response) {
var dataResponse; var dataResponse;
var fullResponseText = response.responseText; var fullResponseText = response.responseText;