Merged in mcuiza/processmaker/PM-31 (pull request #2209)

PM-31 - Refactor output document
This commit is contained in:
Julio Cesar Laura Avendaño
2015-05-25 13:54:07 -04:00
4 changed files with 127 additions and 31 deletions

View File

@@ -806,15 +806,21 @@ try {
G::LoadClass('xmlfield_InputPM');
$proUid = isset($_REQUEST['process']) ? $_REQUEST['process'] : '';
$queryText = isset($_REQUEST['queryText']) ? $_REQUEST['queryText'] : '';
if ($_REQUEST['type'] == 'system') {
$isSystem = true;
} else {
$isSystem = false;
switch($_REQUEST['type']) {
case 'system';
$typeVars = $_REQUEST['type'];
break;
case 'process';
$typeVars = $_REQUEST['type'];
break;
case 'grid';
$typeVars = $_REQUEST['type'];
break;
}
if ($_REQUEST['type'] == 'all') {
$aFields = getDynaformsVars($proUid);
} else {
$aFields = getDynaformsVars($proUid, $isSystem, isset($_REQUEST['bIncMulSelFields']) ? $_REQUEST['bIncMulSelFields'] : 1);
$aFields = getDynaformsVars($proUid, $typeVars, isset($_REQUEST['bIncMulSelFields']) ? $_REQUEST['bIncMulSelFields'] : 1);
}
$aVariables = array();