Merged in bugfix/PMC-387 (pull request #6857)
PMC-387 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
dacdfffc1b
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use ProcessMaker\Core\System;
|
use ProcessMaker\Core\System;
|
||||||
|
use ProcessMaker\Util\DateTime;
|
||||||
|
|
||||||
$filter = new InputFilter();
|
$filter = new InputFilter();
|
||||||
$_POST = $filter->xssFilterHard($_POST);
|
$_POST = $filter->xssFilterHard($_POST);
|
||||||
@@ -85,6 +86,7 @@ switch ($actionAjax) {
|
|||||||
if ($respMess == 'BLOCK' || $respMess == '') {
|
if ($respMess == 'BLOCK' || $respMess == '') {
|
||||||
$appMessageArray[$index]['APP_MSG_BODY'] = '';
|
$appMessageArray[$index]['APP_MSG_BODY'] = '';
|
||||||
}
|
}
|
||||||
|
$appMessageArray[$index]['APP_MSG_DATE'] = DateTime::convertUtcToTimeZone($appMessageArray[$index]['APP_MSG_DATE']);
|
||||||
$messageList[] = array_merge($appMessageArray[$index], ['MSGS_HISTORY' => $respMess]);
|
$messageList[] = array_merge($appMessageArray[$index], ['MSGS_HISTORY' => $respMess]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use ProcessMaker\Core\System;
|
use ProcessMaker\Core\System;
|
||||||
|
use ProcessMaker\Util\DateTime;
|
||||||
|
|
||||||
$filter = new InputFilter();
|
$filter = new InputFilter();
|
||||||
$_GET = $filter->xssFilterHard($_GET);
|
$_GET = $filter->xssFilterHard($_GET);
|
||||||
@@ -581,6 +582,7 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
|||||||
while ($rs->next()) {
|
while ($rs->next()) {
|
||||||
$result = $rs->getRow();
|
$result = $rs->getRow();
|
||||||
$result["TYPE"] = (array_key_exists($result["TYPE"], $arrayToTranslation)) ? $arrayToTranslation[$result["TYPE"]] : $result["TYPE"];
|
$result["TYPE"] = (array_key_exists($result["TYPE"], $arrayToTranslation)) ? $arrayToTranslation[$result["TYPE"]] : $result["TYPE"];
|
||||||
|
$result['CREATE_DATE'] = DateTime::convertUtcToTimeZone($result['CREATE_DATE']);
|
||||||
$aProcesses[] = $result;
|
$aProcesses[] = $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -622,7 +624,7 @@ switch (($_POST['action']) ? $_POST['action'] : $_REQUEST['action']) {
|
|||||||
$result["FILEDOCEXIST"] = ($result["FILEDOC"]);
|
$result["FILEDOCEXIST"] = ($result["FILEDOC"]);
|
||||||
$result["FILEPDFEXIST"] = ($result["FILEPDF"]);
|
$result["FILEPDFEXIST"] = ($result["FILEPDF"]);
|
||||||
$result["DELETE_FILE"] = (isset($result['ID_DELETE']) && $result['ID_DELETE'] == 'Delete') ? true : false;
|
$result["DELETE_FILE"] = (isset($result['ID_DELETE']) && $result['ID_DELETE'] == 'Delete') ? true : false;
|
||||||
|
$result['CREATE_DATE'] = DateTime::convertUtcToTimeZone($result['CREATE_DATE']);
|
||||||
$aProcesses[] = $result;
|
$aProcesses[] = $result;
|
||||||
|
|
||||||
$rs->next();
|
$rs->next();
|
||||||
|
|||||||
@@ -1,26 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* summary.php
|
use ProcessMaker\Util\DateTime;
|
||||||
*
|
|
||||||
* ProcessMaker Open Source Edition
|
|
||||||
* Copyright (C) 2004 - 2011 Colosa Inc.
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as
|
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
|
||||||
* License, or (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*
|
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
|
||||||
*/
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
@@ -70,7 +50,7 @@ try {
|
|||||||
if ($result->next()) {
|
if ($result->next()) {
|
||||||
$FieldsPmDynaform = $applicationFields;
|
$FieldsPmDynaform = $applicationFields;
|
||||||
$FieldsPmDynaform["CURRENT_DYNAFORM"] = $_REQUEST['DYN_UID'];
|
$FieldsPmDynaform["CURRENT_DYNAFORM"] = $_REQUEST['DYN_UID'];
|
||||||
$a = new PmDynaform(\ProcessMaker\Util\DateTime::convertUtcToTimeZone($FieldsPmDynaform));
|
$a = DateTime::convertUtcToTimeZone($FieldsPmDynaform);
|
||||||
$a->printView();
|
$a->printView();
|
||||||
}
|
}
|
||||||
if (file_exists( PATH_DYNAFORM . $applicationFields['PRO_UID'] . PATH_SEP . $_REQUEST['DYN_UID'] . '.xml' )) {
|
if (file_exists( PATH_DYNAFORM . $applicationFields['PRO_UID'] . PATH_SEP . $_REQUEST['DYN_UID'] . '.xml' )) {
|
||||||
|
|||||||
Reference in New Issue
Block a user