Merged in gproly/processmaker/PM-1340 (pull request #1494)
PM-1340 IMPROVEMENT
This commit is contained in:
@@ -147,9 +147,19 @@ class pmDynaform
|
|||||||
$items[$key]->data = $rows;
|
$items[$key]->data = $rows;
|
||||||
}
|
}
|
||||||
if ($items[$key]->type !== "grid") {
|
if ($items[$key]->type !== "grid") {
|
||||||
|
$value = "";
|
||||||
|
$label = "";
|
||||||
|
if (isset($this->data[$items[$key]->name . "_label"])) {
|
||||||
|
$value = $this->data[$items[$key]->name];
|
||||||
|
$label = $this->data[$items[$key]->name . "_label"];
|
||||||
|
}
|
||||||
|
if (isset($this->data[$items[$key]->name . "_value"])) {
|
||||||
|
$value = $this->data[$items[$key]->name . "_value"];
|
||||||
|
$label = $this->data[$items[$key]->name];
|
||||||
|
}
|
||||||
$items[$key]->data = array(
|
$items[$key]->data = array(
|
||||||
"value" => $this->data[$items[$key]->name],
|
"value" => $value,
|
||||||
"label" => $this->searchValues($items[$key]->name, $this->data[$items[$key]->name])
|
"label" => $label
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,10 +22,6 @@ function dynaFormChanged(frm) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$(window).load(function () {
|
$(window).load(function () {
|
||||||
/*if ((navigator.userAgent.indexOf("MSIE") !== -1) || (navigator.userAgent.indexOf("Trident") !== -1)) {
|
|
||||||
document.body.innerHTML = "<div style='margin:15px'>Responsive Dynaforms are not supported in this browser.</div>";
|
|
||||||
return;
|
|
||||||
}*/
|
|
||||||
if (pm_run_outside_main_app === 'true') {
|
if (pm_run_outside_main_app === 'true') {
|
||||||
if (parent.showCaseNavigatorPanel) {
|
if (parent.showCaseNavigatorPanel) {
|
||||||
parent.showCaseNavigatorPanel('DRAFT');
|
parent.showCaseNavigatorPanel('DRAFT');
|
||||||
@@ -49,7 +45,7 @@ $(window).load(function () {
|
|||||||
submitRest: false
|
submitRest: false
|
||||||
});
|
});
|
||||||
new PMDynaform.core.Proxy({
|
new PMDynaform.core.Proxy({
|
||||||
url: "http://" + window.project.keys.server + ":"+port +"/" + window.project.keys.apiName + "/" + window.project.keys.apiVersion + "/" + window.project.keys.workspace + "/cases/" + app_uid + "/variables",
|
url: "http://" + window.project.keys.server + "/" + window.project.keys.apiName + "/" + window.project.keys.apiVersion + "/" + window.project.keys.workspace + "/cases/" + app_uid + "/variables",
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
data: {},
|
data: {},
|
||||||
keys: window.project.token,
|
keys: window.project.token,
|
||||||
|
|||||||
Reference in New Issue
Block a user