details: https://code.openbravo.com/erp/devel/pi/rev/532db4b48a35
changeset: 13765:532db4b48a35
user: Javier Etxarri <javier.echarri <at> openbravo.com>
date: Tue Sep 13 12:19:56 2011 +0200
summary: issue 17778: added some code corrections
diffstat:
modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/SelectorDataSourceFilter.java
| 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r ac37116c4cc2 -r 532db4b48a35
modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/SelectorDataSourceFilter.java
---
a/modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/SelectorDataSourceFilter.java
Tue Sep 13 11:36:48 2011 +0200
+++
b/modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/SelectorDataSourceFilter.java
Tue Sep 13 12:19:56 2011 +0200
@@ -118,12 +118,13 @@
String fieldName;
Entity entity = ModelProvider.getInstance().getEntityByTableName(
sel.getTable().getDBTableName());
- Entity cEntity = entity;
+ Entity cEntity = null;
try {
OBContext.setAdminMode(true);
if (value.contains(JsonConstants.IN_PARAMETER_SEPARATOR)) {
final String[] separatedValues =
value.split(JsonConstants.IN_PARAMETER_SEPARATOR);
for (String separatedValue : separatedValues) {
+ cEntity = entity;
JSONObject jSONObject = new JSONObject(separatedValue);
fieldName = (String) jSONObject.get("fieldName");
if (fieldName.contains("_dummy") || fieldName.contains("_identifier")
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits