Merged in bugfix/PMCORE-1095 (pull request #7222)

PMCORE-1095

Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
Julio Cesar Laura Avendaño
2020-01-24 13:13:10 +00:00
4 changed files with 15 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ if (isset($_GET['ux'])) {
}
/*----------------------------------********---------------------------------*/
}
echo "try {parent.parent.updateCasesTree();} catch(e) {}";
?>
}
</script>

View File

@@ -464,6 +464,11 @@ function openCaseA(n){
} else {
window.location = res.openCase.PAGE;
}
try {
parent.updateCasesTree();
} catch (e) {
// Nothing to do
}
}else if (res.lostSession) {
Ext.Msg.show({
title : TRANSLATIONS.ID_ERROR_CREATING_NEW_CASE, // 'Error creating a new Case',

View File

@@ -1080,6 +1080,7 @@ Ext.onReady(function(){
success: function ( result, request ) {
try {
parent.notify("", _("ID_CASE_CANCELLED", stringReplace("\\: ", "", _APP_NUM)));
parent.updateCasesTree();
}
catch (e) {
}
@@ -1346,6 +1347,7 @@ Ext.onReady(function(){
if( data.status == 0 ) {
try {
parent.notify('', data.msg);
parent.updateCasesTree();
}
catch (e) {
}
@@ -1545,6 +1547,7 @@ Ext.onReady(function(){
if(req.result.success) {
try {
parent.notify('PAUSE CASE', req.result.msg);
parent.updateCasesTree();
}catch (e) {
}
location.href = urlToRedirectAfterPause;
@@ -1583,6 +1586,7 @@ Ext.onReady(function(){
if( data.success ) {
try {
parent.PMExt.notify(_('ID_UNPAUSE_ACTION'), data.msg);
parent.updateCasesTree();
}
catch (e) {
}
@@ -1636,6 +1640,7 @@ Ext.onReady(function(){
if( data.success ) {
try {
parent.PMExt.notify(_('ID_DELETE_ACTION'), data.msg);
parent.updateCasesTree();
}
catch (e) {
}

View File

@@ -2,11 +2,13 @@
$filter = new InputFilter();
if (isset($_POST['NextStep'])) {
$nextStep = $filter->xssFilterHard($_POST['NextStep'], "url"); ?>
$nextStep = $filter->xssFilterHard($_POST['NextStep'], "url");
$refresh = $nextStep == 'cases_Step?breakpoint=triggerdebug' ? 'try {parent.parent.updateCasesTree();} catch(e) {}' : '';
?>
<div class="ui-widget-header ui-corner-all" width="100%" align="center">
Processmaker - Debugger (Break Point)&nbsp;&nbsp;&nbsp;&nbsp;
<input type="button" value="Continue" class="module_app_button___gray"
onclick="javascript:location.href='<?php echo $nextStep; ?>'">
onclick="javascript:location.href='<?php echo $nextStep; ?>';<?php echo $refresh; ?>">
</div>
<?php
}