diff --git a/migration/i1.0b-release/oracle/201305101047_IDEMPIERE-919.sql b/migration/i1.0b-release/oracle/201305101047_IDEMPIERE-919.sql new file mode 100644 index 0000000000..2e5e1bae74 --- /dev/null +++ b/migration/i1.0b-release/oracle/201305101047_IDEMPIERE-919.sql @@ -0,0 +1,12 @@ +-- May 10, 2013 10:43:39 AM COT +-- IDEMPIERE-919 Values for "Partner Location & User / Contact", no changes when value changed business partner +UPDATE AD_Column SET AD_Reference_Value_ID=NULL, AD_Reference_ID=19, AD_Val_Rule_ID=123, DefaultValue='-1',Updated=TO_DATE('2013-05-10 10:43:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53973 +; + +-- May 10, 2013 10:44:19 AM COT +-- IDEMPIERE-919 Values for "Partner Location & User / Contact", no changes when value changed business partner +UPDATE AD_Column SET AD_Reference_ID=19, AD_Val_Rule_ID=167,Updated=TO_DATE('2013-05-10 10:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53975 +; + +SELECT register_migration_script('201305101047_IDEMPIERE-919.sql') FROM dual; + diff --git a/migration/i1.0b-release/postgresql/201305101047_IDEMPIERE-919.sql b/migration/i1.0b-release/postgresql/201305101047_IDEMPIERE-919.sql new file mode 100644 index 0000000000..f10ef88732 --- /dev/null +++ b/migration/i1.0b-release/postgresql/201305101047_IDEMPIERE-919.sql @@ -0,0 +1,12 @@ +-- May 10, 2013 10:43:39 AM COT +-- IDEMPIERE-919 Values for "Partner Location & User / Contact", no changes when value changed business partner +UPDATE AD_Column SET AD_Reference_Value_ID=NULL, AD_Reference_ID=19, AD_Val_Rule_ID=123, DefaultValue='-1',Updated=TO_TIMESTAMP('2013-05-10 10:43:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53973 +; + +-- May 10, 2013 10:44:19 AM COT +-- IDEMPIERE-919 Values for "Partner Location & User / Contact", no changes when value changed business partner +UPDATE AD_Column SET AD_Reference_ID=19, AD_Val_Rule_ID=167,Updated=TO_TIMESTAMP('2013-05-10 10:44:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53975 +; + +SELECT register_migration_script('201305101047_IDEMPIERE-919.sql') FROM dual; + diff --git a/org.adempiere.base/src/org/adempiere/base/DefaultLookupFactory.java b/org.adempiere.base/src/org/adempiere/base/DefaultLookupFactory.java index d1fd5f9f64..d9c5927177 100644 --- a/org.adempiere.base/src/org/adempiere/base/DefaultLookupFactory.java +++ b/org.adempiere.base/src/org/adempiere/base/DefaultLookupFactory.java @@ -34,6 +34,8 @@ public class DefaultLookupFactory implements ILookupFactory{ @Override public Lookup getLookup(GridFieldVO gridFieldVO) { Lookup lookup = null; + if (gridFieldVO.lookupInfo == null && DisplayType.isLookup(gridFieldVO.displayType)) // IDEMPIERE-913 + gridFieldVO.loadLookupInfo(); if (gridFieldVO.displayType == Location) // not cached { lookup = new MLocationLookup (gridFieldVO.ctx, gridFieldVO.WindowNo); diff --git a/org.adempiere.base/src/org/compiere/model/GridField.java b/org.adempiere.base/src/org/compiere/model/GridField.java index c9b62d7b35..64928bdc7e 100644 --- a/org.adempiere.base/src/org/compiere/model/GridField.java +++ b/org.adempiere.base/src/org/compiere/model/GridField.java @@ -208,7 +208,7 @@ public class GridField * bypass isdisplay validation, used by findwindow */ public void loadLookupNoValidate() { - if (m_vo.lookupInfo == null) { + if (m_vo.lookupInfo == null && isLookup()) { m_vo.loadLookupInfo(); } if (m_vo.lookupInfo == null) { @@ -233,9 +233,10 @@ public class GridField * @return lookup */ public Lookup getLookup() - { + { + if (m_lookup == null) loadLookupNoValidate(); // IDEMPIERE-913 return m_lookup; - } // getLookup + } // getLookup /** * Is this field a Lookup?. diff --git a/org.adempiere.server/idempiere.html b/org.adempiere.server/idempiere.html index 603c64d13c..716345d707 100644 --- a/org.adempiere.server/idempiere.html +++ b/org.adempiere.server/idempiere.html @@ -190,6 +190,7 @@ Start iDempiere via RUN_Adempiere