HOR-2877 Missing changes apply.

This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-03-16 16:21:11 -04:00
parent 7dc9dd807b
commit ceb06249d1
2 changed files with 9 additions and 5 deletions

View File

@@ -681,13 +681,14 @@ class Consolidated
return Ext.isDate(value)? value.dateFormat('{$dateFormat}') : value;
} *";
if ($field->mode == "view") {
$editor = null;
}
//Important for windows servers, because the character '\r'
//breaks the json definition.
$editor = $this->removeLineBreaks($editor);
$renderer = $this->removeLineBreaks($renderer);
if ($field->mode == "view") {
$editor = null;
}
$caseColumns[] = array("header" => $fieldLabel, "dataIndex" => $field->name, "width" => (int) ($width), "editor" => $editor, "renderer" => $renderer, "frame" => true, "clicksToEdit" => 1, "sortable" => true);
$caseReaderFields[] = array("name" => $field->name, "type" => "date");

View File

@@ -848,13 +848,16 @@ function generateGrid(proUid, tasUid, dynUid) {
}
function ajaxDerivationRequest(appUid, delIndex, maxLenght, appNumber, fieldGridGral, fieldGridGralVal) {
if (fieldGridGralVal !== null) {
fieldGridGralVal = stringReplace("\\x2F", "__FRASL__", fieldGridGralVal);
}
Ext.Ajax.request({
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + credentials.access_token
},
url: urlProxy + 'derivate/' + appUid + '/' + appNumber + '/' + delIndex + '/' + fieldGridGral + '/' + stringReplace("\\x2F", "__FRASL__", fieldGridGralVal) + '/',
url: urlProxy + 'derivate/' + appUid + '/' + appNumber + '/' + delIndex + '/' + fieldGridGral + '/' + fieldGridGralVal + '/',
success: function (response) {
var dataResponse;
var fullResponseText = response.responseText;