details: https://code.openbravo.com/erp/devel/pi/rev/592598efcef0
changeset: 23017:592598efcef0
user: Guillermo Gil <guillermo.gil <at> openbravo.com>
date: Mon May 12 18:29:49 2014 +0200
summary: Related to issue 26505:AD_Language does not show any results
If the path contains a field separator use the previous query
diffstat:
modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
| 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r bf8e3af7ae0f -r 592598efcef0
modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
a/modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
Mon May 12 15:34:49 2014 +0000
+++
b/modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
Mon May 12 18:29:49 2014 +0200
@@ -233,7 +233,8 @@
whereClause += StringUtils.isEmpty(whereClause.trim()) ? "where" : "and";
// if the property allows null values, use a left join instead an inner
join
- if (subEntity.getProperty(distinctPropertyPath).allowNullValues()) {
+ if (!distinctPropertyPath.contains(DalUtil.FIELDSEPARATOR)
+ && subEntity.getProperty(distinctPropertyPath).allowNullValues()) {
whereClause += " exists (select 1 from " + subEntity.getName() + " "
+ subEntityQueryBuilder.getJoinClause() + " left join "
+ subEntityQueryBuilder.getMainAlias() + DalUtil.DOT +
distinctPropertyPath + " as i "
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits