fixed bug 11658: error inserting next step in workflow
authorAsier Lostalé <asier.lostale@openbravo.com>
Fri, 23 Apr 2010 15:13:30 +0200
changeset 7136 72a9865d5f18
parent 7135 8dc35f2ddcca
child 7137 ecec4ea06a1d
fixed bug 11658: error inserting next step in workflow
src-db/database/model/triggers/AD_WF_NODENEXT_MOD_TRG.xml
--- a/src-db/database/model/triggers/AD_WF_NODENEXT_MOD_TRG.xml	Fri Apr 23 17:46:46 2010 +0530
+++ b/src-db/database/model/triggers/AD_WF_NODENEXT_MOD_TRG.xml	Fri Apr 23 15:13:30 2010 +0200
@@ -15,7 +15,7 @@
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
-* All portions are Copyright (C) 2008 Openbravo SLU
+* All portions are Copyright (C) 2008-2010 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************/
@@ -38,10 +38,10 @@
      
   IF (UPDATING OR INSERTING) THEN
     cuerrentID := :new.AD_WF_NodeNext_ID;
-    cuerrentModuleID := :old.AD_WF_NODE_ID;
+    cuerrentModuleID := :new.AD_WF_NODE_ID;
   ELSE
     cuerrentID := :old.AD_WF_NodeNext_ID;
-    cuerrentModuleID := :NEW.AD_WF_NODE_ID;
+    cuerrentModuleID := :old.AD_WF_NODE_ID;
   END IF;
   
       SELECT M.IsInDevelopment