Fixes issue 13665: Remove unnecessary DAL save
authorAugusto Mauch <augusto.mauch@openbravo.com>
Wed, 19 Sep 2012 16:17:34 +0200
changeset 17981 d9a38ada2c86
parent 17980 0619603e5e54
child 17982 9626592579b5
Fixes issue 13665: Remove unnecessary DAL save

When heartbeat is disabled, the process request is fetched with DAL, and used to unschedule the process. The process request itself it is not explicitly modified, so there is no need to save it.
src/org/openbravo/erpCommon/ad_process/TestHeartbeat.java
--- a/src/org/openbravo/erpCommon/ad_process/TestHeartbeat.java	Wed Sep 19 14:38:29 2012 +0200
+++ b/src/org/openbravo/erpCommon/ad_process/TestHeartbeat.java	Wed Sep 19 16:17:34 2012 +0200
@@ -131,8 +131,6 @@
 
           final ProcessRequest pr = requestList.get(0);
 
-          OBDal.getInstance().save(pr);
-
           final ProcessBundle bundle = ProcessBundle.request(pr.getId(), vars, connectionProvider);
 
           OBScheduler.getInstance().unschedule(pr.getId(), bundle.getContext());