Merged in bugfix/PMCORE-1056 (pull request #7215)

PMCORE-1056

Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
Julio Cesar Laura Avendaño
2020-01-17 12:52:09 +00:00
4 changed files with 6 additions and 22 deletions

View File

@@ -2602,12 +2602,6 @@ Ext.onReady ( function() {
// Nothing to do
}
try {
parent.updateCasesTree();
}
catch (e) {
// Nothing to do
}
if (action === "search") {
comboCategory.setValue(
typeof filtersValues !== 'undefined' && filtersValues.advanced && filtersValues.advanced.category ?

View File

@@ -593,8 +593,6 @@ Ext.onReady(function () {
}
}
parent.updateCasesTree();
function inArray(arr, obj) {
for (var i = 0; i < arr.length; i++) {
if (arr[i] == obj)

View File

@@ -6,16 +6,6 @@ Ext.chart.Chart.CHART_URL = '/images/charts.swf';
Ext.FlashComponent.EXPRESS_INSTALL_URL = '/images/expressinstall.swf';
// The Quicktips are used for the toolbar and Tree mouseover tooltips!
// Refresh treePanel
try {
if (typeof(parent.timer) != 'undefined') {
parent.timer();
}
} catch(theError) {
// This try-catch is for Zimbra error
}
var conn = new Ext.data.Connection();
Docs = {};

View File

@@ -496,8 +496,12 @@ Ext.onReady(function(){
/**hide*/
menuPanelC.hide();
menuPanelC.ownerCt.doLayout();
//FORMATS.casesListRefreshTime is in seconds
setTimeout("timer()", parseInt(FORMATS.casesListRefreshTime) * 1000);
// Get the counters the first time
updateCasesTree();
// FORMATS.casesListRefreshTime is in seconds
setInterval("timer()", parseInt(FORMATS.casesListRefreshTime) * 1000);
});
function updateCasesView(viewList) {
@@ -562,8 +566,6 @@ function timer() {
updateCasesTree();
updateCasesView();
}
//FORMATS.casesListRefreshTime is in seconds
setTimeout("timer()", parseInt(FORMATS.casesListRefreshTime) * 1000);
}
Ext.data.DynamicJsonReader = function(config){