details:   /erp/devel/pi/rev/fb6b4c4f7c5d
changeset: 12362:fb6b4c4f7c5d
user:      Iván Perdomo <ivan.perdomo <at> openbravo.com>
date:      Tue May 24 09:49:17 2011 +0200
summary:   Fixes issue 16979: Fixes problem when using the picklist

diffstat:

 
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ModelDataSourceService.java
 |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 3591dbfb824b -r fb6b4c4f7c5d 
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ModelDataSourceService.java
--- 
a/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ModelDataSourceService.java
 Tue May 24 09:32:58 2011 +0200
+++ 
b/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ModelDataSourceService.java
 Tue May 24 09:49:17 2011 +0200
@@ -68,7 +68,11 @@
     String propertyPath = parameters.get(DATASOURCE_FIELD);
     if (propertyPath == null) {
       HashMap<String, String> criteria = getCriteria(parameters);
-      propertyPath = criteria.get(DATASOURCE_FIELD);
+      if (criteria != null && criteria.containsKey(DATASOURCE_FIELD)) {
+        propertyPath = criteria.get(DATASOURCE_FIELD);
+      } else {
+        propertyPath = "";
+      }
     }
 
     if (baseEntity == null) {

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to