From 0716a96317bb7fc28ec0c0cbf0185d25821c8757 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Tue, 13 Jan 2009 23:36:40 +0000 Subject: [PATCH] Wrong default in Action field in WF_Node http://sourceforge.net/tracker2/?func=detail&aid=2505658&group_id=176962&atid=879332 --- base/src/org/compiere/wf/MWFNode.java | 7 +++++++ .../353a-trunk/oracle/395_BF2505658_FixActionWFNode.sql | 7 +++++++ .../postgresql/395_BF2505658_FixActionWFNode.sql | 6 ++++++ 3 files changed, 20 insertions(+) create mode 100644 migration/353a-trunk/oracle/395_BF2505658_FixActionWFNode.sql create mode 100644 migration/353a-trunk/postgresql/395_BF2505658_FixActionWFNode.sql diff --git a/base/src/org/compiere/wf/MWFNode.java b/base/src/org/compiere/wf/MWFNode.java index 9eb955422d..996c377e73 100644 --- a/base/src/org/compiere/wf/MWFNode.java +++ b/base/src/org/compiere/wf/MWFNode.java @@ -530,6 +530,13 @@ public class MWFNode extends X_AD_WF_Node */ protected boolean beforeSave (boolean newRecord) { + if(MWorkflow.WORKFLOWTYPE_Manufacturing.equals(getWorkflow().getWorkflowType())) + { + setAction(MWFNode.ACTION_WaitSleep); + return true; + } + setAction(MWFNode.ACTION_DocumentAction); + String action = getAction(); if (action.equals(ACTION_WaitSleep)) ; diff --git a/migration/353a-trunk/oracle/395_BF2505658_FixActionWFNode.sql b/migration/353a-trunk/oracle/395_BF2505658_FixActionWFNode.sql new file mode 100644 index 0000000000..684fa615c9 --- /dev/null +++ b/migration/353a-trunk/oracle/395_BF2505658_FixActionWFNode.sql @@ -0,0 +1,7 @@ + +-- Jan 13, 2009 5:59:32 PM ECT +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Column SET DefaultValue='Z',Updated=TO_DATE('2009-01-13 17:59:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=2291 +; + +UPDATE AD_WF_Node SET Action = 'Z' WHERE Action='N' \ No newline at end of file diff --git a/migration/353a-trunk/postgresql/395_BF2505658_FixActionWFNode.sql b/migration/353a-trunk/postgresql/395_BF2505658_FixActionWFNode.sql new file mode 100644 index 0000000000..dc2ba9a83c --- /dev/null +++ b/migration/353a-trunk/postgresql/395_BF2505658_FixActionWFNode.sql @@ -0,0 +1,6 @@ +-- Jan 13, 2009 5:59:32 PM ECT +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Column SET DefaultValue='Z',Updated=TO_TIMESTAMP('2009-01-13 17:59:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=2291 +; + +UPDATE AD_WF_Node SET Action = 'Z' WHERE Action='N' \ No newline at end of file