Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0042916 | Openbravo ERP | A. Platform | public | 2020-01-16 17:03 | 2020-01-22 18:36 | |||||||
Reporter | AugustoMauch | |||||||||||
Assigned To | AugustoMauch | |||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | 3.0PR20Q2 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | caristu | |||||||||||
OBNetwork customer | No | |||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0042916: Selectors do not work properly in parameter windows if there are translations installed | |||||||||||
Description | When a parameter window has a grid parameter, and that grid parameter has a selector that points to a translatable property, the filter will not work properly if there are translations installed. The fix for https://issues.openbravo.com/view.php?id=42915 [^] is required to reproduce this issue. | |||||||||||
Steps To Reproduce | Make sure the fix of https://issues.openbravo.com/view.php?id=42915 [^] is applied - Install the attached module. - Install a translation pack (or edit OBContext.hasTranslationInstalled so that it always return true) - Login, use any non-system role - Open the Test Tree PW window. - Click on the filter of the extraProductCategory column and select any value. - The grid will be empty and the following error will be shown in the log: 2020-01-16 17:03:26,510 [http-nio-8080-exec-3] ERROR org.openbravo.service.datasource.DataSourceServlet - org.hibernate.QueryException: could not resolve property: extraProductCategory of: Product [select get_uuid() as id, p.name as name, p.productCategory as extraProductCategory from Product p WHERE p.client.id in ('0', :clientId) AND p.organization.id in ( :organizations ) AND (( upper((COALESCE(to_char((select p.name from ProductCategoryTrl as t where t.productCategory = p.extraProductCategory and t.language.language='en_US')), to_char(p.productCategory.name), ''))) = upper(:alias_0) )) ] java.lang.IllegalArgumentException: org.hibernate.QueryException: could not resolve property: extraProductCategory of: Product [select get_uuid() as id, p.name as name, p.productCategory as extraProductCategory from Product p WHERE p.client.id in ('0', :clientId) AND p.organization.id in ( :organizations ) AND (( upper((COALESCE(to_char((select p.name from ProductCategoryTrl as t where t.productCategory = p.extraProductCategory and t.language.language='en_US')), to_char(p.productCategory.name), ''))) = upper(:alias_0) )) ] at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:138) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final] at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final] at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final] at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:729) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final] at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:745) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final] at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:104) ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final] at org.openbravo.service.datasource.HQLDataSourceService.getQuery(HQLDataSourceService.java:368) ~[classes/:?] at org.openbravo.service.datasource.HQLDataSourceService.getData(HQLDataSourceService.java:190) ~[classes/:?] at org.openbravo.service.datasource.ReadOnlyDataSourceService.getSelectedData(ReadOnlyDataSourceService.java:168) ~[classes/:?] at org.openbravo.service.datasource.ReadOnlyDataSourceService.fetchJSONObject(ReadOnlyDataSourceService.java:147) ~[classes/:?] at org.openbravo.service.datasource.ReadOnlyDataSourceService.fetch(ReadOnlyDataSourceService.java:76) ~[classes/:?] at org.openbravo.service.datasource.DataSourceServlet.doFetch(DataSourceServlet.java:290) [classes/:?] at org.openbravo.service.datasource.DataSourceServlet.doPost(DataSourceServlet.java:837) [classes/:?] | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=13855&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2020-01-16 17:03 | AugustoMauch | New Issue | ||||||||||
2020-01-16 17:03 | AugustoMauch | Assigned To | => AugustoMauch | |||||||||
2020-01-16 17:03 | AugustoMauch | OBNetwork customer | => No | |||||||||
2020-01-16 17:03 | AugustoMauch | Modules | => Core | |||||||||
2020-01-16 17:03 | AugustoMauch | Triggers an Emergency Pack | => No | |||||||||
2020-01-16 17:04 | AugustoMauch | File Added: org.openbravo.testtreeinpw.zip | ||||||||||
2020-01-16 17:04 | AugustoMauch | Relationship added | depends on 0042915 | |||||||||
2020-01-16 17:59 | AugustoMauch | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=20155#r20155 | |||||||||
2020-01-20 10:36 | hgbot | Checkin | ||||||||||
2020-01-20 10:36 | hgbot | Note Added: 0117054 | ||||||||||
2020-01-20 10:36 | hgbot | Status | new => resolved | |||||||||
2020-01-20 10:36 | hgbot | Resolution | open => fixed | |||||||||
2020-01-20 10:36 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/0fc6a0afc5916b86a15c55fcb311b0ec2d300b51 [^] | |||||||||
2020-01-22 18:36 | caristu | Review Assigned To | => caristu | |||||||||
2020-01-22 18:36 | caristu | Note Added: 0117180 | ||||||||||
2020-01-22 18:36 | caristu | Status | resolved => closed | |||||||||
2020-01-22 18:36 | caristu | Fixed in Version | => 3.0PR20Q2 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|