diff --git a/migration/i3.1z/oracle/201610071604_IDEMPIERE-3191.sql b/migration/i3.1z/oracle/201610071604_IDEMPIERE-3191.sql new file mode 100644 index 0000000000..4a4a694e02 --- /dev/null +++ b/migration/i3.1z/oracle/201610071604_IDEMPIERE-3191.sql @@ -0,0 +1,9 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Oct 7, 2016 7:27:27 PM ICT +INSERT INTO AD_SysConfig (AD_SysConfig_ID,AD_Client_ID,AD_Org_ID,Created,Updated,CreatedBy,UpdatedBy,IsActive,Name,Value,Description,EntityType,ConfigurationLevel,AD_SysConfig_UU) VALUES (200082,0,0,TO_DATE('2016-10-07 19:27:21','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2016-10-07 19:27:21','YYYY-MM-DD HH24:MI:SS'),100,100,'Y','ZK_DASHBOARD_PERFORMANCE_REFRESH_INTERVAL','1800000','Configuration time interval to update dashboard performance. Count on millisecond and can set at client level. default is 30 minute. ref:IDEMPIERE-3191','D','S','32b0db21-6b5c-4483-873a-6c38fd743ab1') +; + +SELECT register_migration_script('201610071604_IDEMPIERE-3191.sql') FROM dual +; diff --git a/migration/i3.1z/postgresql/201610071604_IDEMPIERE-3191.sql b/migration/i3.1z/postgresql/201610071604_IDEMPIERE-3191.sql new file mode 100644 index 0000000000..2cfcda5c67 --- /dev/null +++ b/migration/i3.1z/postgresql/201610071604_IDEMPIERE-3191.sql @@ -0,0 +1,7 @@ +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +-- Oct 7, 2016 7:27:27 PM ICT +INSERT INTO AD_SysConfig (AD_SysConfig_ID,AD_Client_ID,AD_Org_ID,Created,Updated,CreatedBy,UpdatedBy,IsActive,Name,Value,Description,EntityType,ConfigurationLevel,AD_SysConfig_UU) VALUES (200082,0,0,TO_TIMESTAMP('2016-10-07 19:27:21','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2016-10-07 19:27:21','YYYY-MM-DD HH24:MI:SS'),100,100,'Y','ZK_DASHBOARD_PERFORMANCE_REFRESH_INTERVAL','1800000','Configuration time interval to update dashboard performance. Count on millisecond and can set at client level. default is 30 minute. ref:IDEMPIERE-3191','D','S','32b0db21-6b5c-4483-873a-6c38fd743ab1') +; + +SELECT register_migration_script('201610071604_IDEMPIERE-3191.sql') FROM dual +; diff --git a/org.adempiere.base/src/org/compiere/model/MGoal.java b/org.adempiere.base/src/org/compiere/model/MGoal.java index 7ab7b9bef7..fbafd6b4b4 100644 --- a/org.adempiere.base/src/org/compiere/model/MGoal.java +++ b/org.adempiere.base/src/org/compiere/model/MGoal.java @@ -376,7 +376,7 @@ public class MGoal extends X_PA_Goal boolean isUpdateByInterfal = false; if (getDateLastRun() != null){ // default 30 minute 1800000 - long interval = MSysConfig.getIntValue(MSysConfig.ZK_DASHBOARD_PERFORMANCE_REFRESH_INTERVAL, 1800000); + long interval = MSysConfig.getIntValue(MSysConfig.ZK_DASHBOARD_PERFORMANCE_REFRESH_INTERVAL, 1800000, Env.getAD_Client_ID(Env.getCtx())); isUpdateByInterfal = (System.currentTimeMillis() - getDateLastRun().getTime()) > interval; }