diff --git a/migration/i1.0b-release/oracle/201305041605_IDEMPIERE-894.sql b/migration/i1.0b-release/oracle/201305041605_IDEMPIERE-894.sql new file mode 100644 index 0000000000..b6fc7be93e --- /dev/null +++ b/migration/i1.0b-release/oracle/201305041605_IDEMPIERE-894.sql @@ -0,0 +1,12 @@ +-- May 4, 2013 4:02:25 PM COT +-- IDEMPIERE-894 Not Possible to Link Business Partner to an Organization +UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_DATE('2013-05-04 16:02:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=10927 +; + +-- May 4, 2013 4:03:03 PM COT +UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_DATE('2013-05-04 16:03:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=8757 +; + +SELECT register_migration_script('201305041605_IDEMPIERE-894.sql') FROM dual +; + diff --git a/migration/i1.0b-release/postgresql/201305041605_IDEMPIERE-894.sql b/migration/i1.0b-release/postgresql/201305041605_IDEMPIERE-894.sql new file mode 100644 index 0000000000..9f8c7364c4 --- /dev/null +++ b/migration/i1.0b-release/postgresql/201305041605_IDEMPIERE-894.sql @@ -0,0 +1,12 @@ +-- May 4, 2013 4:02:25 PM COT +-- IDEMPIERE-894 Not Possible to Link Business Partner to an Organization +UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_TIMESTAMP('2013-05-04 16:02:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=10927 +; + +-- May 4, 2013 4:03:03 PM COT +UPDATE AD_Column SET IsAllowCopy='N',Updated=TO_TIMESTAMP('2013-05-04 16:03:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=8757 +; + +SELECT register_migration_script('201305041605_IDEMPIERE-894.sql') FROM dual +; + diff --git a/org.adempiere.base/src/org/compiere/model/MBPartner.java b/org.adempiere.base/src/org/compiere/model/MBPartner.java index 90975de351..9c96bb9fda 100644 --- a/org.adempiere.base/src/org/compiere/model/MBPartner.java +++ b/org.adempiere.base/src/org/compiere/model/MBPartner.java @@ -538,7 +538,7 @@ public class MBPartner extends X_C_BPartner if (AD_OrgBP_ID == 0) super.setAD_OrgBP_ID (null); else - super.setAD_OrgBP_ID (String.valueOf(AD_OrgBP_ID)); + super.set_Value("AD_OrgBP_ID", AD_OrgBP_ID); } // setAD_OrgBP_ID /**