Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0023705 | Openbravo ERP | A. Platform | public | 2013-05-01 11:13 | 2013-05-07 15:43 | ||||||||||||||
Reporter | alostale | ||||||||||||||||||
Assigned To | alostale | ||||||||||||||||||
Priority | immediate | Severity | major | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | 3.0MP23 | Fixed in Version | 3.0MP23 | ||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | shankarb | ||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | Production - QA Approved | ||||||||||||||||||
Regression date | 2013-03-04 | ||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/f9728bac00aa8157efca54574bed21f0104d8e07 [^] | ||||||||||||||||||
Triggers an Emergency Pack | Yes | ||||||||||||||||||
Summary | 0023705: Not possible to select a value in drop down filter | ||||||||||||||||||
Description | Drop down combos in grid filter are not populated when they link to a table which identifier is composed by, at least, a reference to another table that is translatable. In this case when opening the combo "No items to show" message is always shown. Though it is still possible to filter by typing in the text field. A cast exception is shown in the backend log: d05203b3 217738 [http-8880-4] ERROR org.openbravo.service.json.DefaultJsonDataService - org.openbravo.model.common.plm.Product cannot be cast to java.lang.String java.lang.ClassCastException: org.openbravo.model.common.plm.Product cannot be cast to java.lang.String at org.openbravo.base.structure.IdentifierProvider.getIdentifier(IdentifierProvider.java:121) at org.openbravo.base.structure.IdentifierProvider.getIdentifier(IdentifierProvider.java:77) at org.openbravo.base.structure.BaseOBObject.getIdentifier(BaseOBObject.java:195) at org.openbravo.base.structure.IdentifierProvider.getIdentifier(IdentifierProvider.java:124) at org.openbravo.base.structure.IdentifierProvider.getIdentifier(IdentifierProvider.java:77) at org.openbravo.base.structure.BaseOBObject.getIdentifier(BaseOBObject.java:195) Following query returns (some of) the columns, around 70, that might be affected by this issue: select tablename, columnname from ad_table t1, ad_column c1 where t1.ad_table_id = c1.ad_table_id and c1.iskey = 'N' and c1.isparent ='N' and exists ( select 1 from ad_table reft where c1.columnname ilike reft.tablename||'_id' and exists (select 1 from ad_column c where c.ad_table_id = reft.ad_table_id and c.isidentifier = 'Y' and exists (select 1 from ad_table trl where tablename ilike substr(c.columnname,1,length(c.columnname)-3)||'_trl'))) and exists (select 1 from ad_field f, ad_tab tb where f.ad_tab_id = tb.ad_tab_id and f.isactive = 'Y' and tb.isactive='Y' and f.ad_column_id = c1.ad_column_id) order by 1,2 | ||||||||||||||||||
Steps To Reproduce | -Open, for example, Good Transaction window -Try to open Good Shipment Line drop down in filter -> Error occurs | ||||||||||||||||||
Proposed Solution | The problematic line is in IdentifierProvider value = ((BaseOBObject) dob).get(identifier.getName(), language, (String) dob.get("id")); In the situation described, dob.get("id") is a BaseOBObject instead of a String. | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | Selection_163.png (17,914) 2013-05-01 11:19 https://issues.openbravo.com/file_download.php?file_id=6123&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2013-05-01 11:13 | alostale | New Issue | |||||||||||||||||
2013-05-01 11:13 | alostale | Assigned To | => alostale | ||||||||||||||||
2013-05-01 11:13 | alostale | Modules | => Core | ||||||||||||||||
2013-05-01 11:13 | alostale | Triggers an Emergency Pack | => No | ||||||||||||||||
2013-05-01 11:17 | alostale | Regression level | => Production - QA Approved | ||||||||||||||||
2013-05-01 11:17 | alostale | Regression date | => 2013-03-04 | ||||||||||||||||
2013-05-01 11:17 | alostale | Regression introduced by commit | => https://code.openbravo.com/erp/devel/pi/rev/f9728bac00aa8157efca54574bed21f0104d8e07 [^] | ||||||||||||||||
2013-05-01 11:17 | alostale | Triggers an Emergency Pack | No => Yes | ||||||||||||||||
2013-05-01 11:17 | alostale | Relationship added | related to 0022836 | ||||||||||||||||
2013-05-01 11:18 | alostale | Note Added: 0058393 | |||||||||||||||||
2013-05-01 11:18 | alostale | Note Edited: 0058393 | bug_revision_view_page.php?bugnote_id=0058393#r4651 | ||||||||||||||||
2013-05-01 11:19 | alostale | File Added: Selection_163.png | |||||||||||||||||
2013-05-01 11:21 | alostale | Proposed Solution updated | |||||||||||||||||
2013-05-01 12:42 | alostale | Relationship added | related to 0023706 | ||||||||||||||||
2013-05-01 12:50 | alostale | Note Added: 0058394 | |||||||||||||||||
2013-05-01 12:54 | hgbot | Checkin | |||||||||||||||||
2013-05-01 12:54 | hgbot | Note Added: 0058396 | |||||||||||||||||
2013-05-01 12:54 | hgbot | Status | new => resolved | ||||||||||||||||
2013-05-01 12:54 | hgbot | Resolution | open => fixed | ||||||||||||||||
2013-05-01 12:54 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/13bebe76e732bde05939d6003363eebe02b1f881 [^] | ||||||||||||||||
2013-05-01 12:54 | hgbot | Checkin | |||||||||||||||||
2013-05-01 12:54 | hgbot | Note Added: 0058398 | |||||||||||||||||
2013-05-01 12:56 | alostale | Review Assigned To | => shankarb | ||||||||||||||||
2013-05-01 13:02 | alostale | Note Added: 0058399 | |||||||||||||||||
2013-05-02 19:03 | hudsonbot | Checkin | |||||||||||||||||
2013-05-02 19:03 | hudsonbot | Note Added: 0058441 | |||||||||||||||||
2013-05-02 19:03 | hudsonbot | Checkin | |||||||||||||||||
2013-05-02 19:03 | hudsonbot | Note Added: 0058444 | |||||||||||||||||
2013-05-07 15:41 | shankarb | Note Added: 0058487 | |||||||||||||||||
2013-05-07 15:41 | shankarb | Status | resolved => closed | ||||||||||||||||
2013-05-07 15:41 | shankarb | Fixed in Version | => 3.0MP24 | ||||||||||||||||
2013-05-07 15:42 | shankarb | Note Added: 0058488 | |||||||||||||||||
2013-05-07 15:42 | shankarb | Status | closed => new | ||||||||||||||||
2013-05-07 15:42 | shankarb | Resolution | fixed => open | ||||||||||||||||
2013-05-07 15:42 | shankarb | Fixed in Version | 3.0MP24 => | ||||||||||||||||
2013-05-07 15:42 | shankarb | Status | new => scheduled | ||||||||||||||||
2013-05-07 15:42 | shankarb | fix_in_branch | => pi | ||||||||||||||||
2013-05-07 15:43 | shankarb | Status | scheduled => resolved | ||||||||||||||||
2013-05-07 15:43 | shankarb | Resolution | open => fixed | ||||||||||||||||
2013-05-07 15:43 | shankarb | Note Added: 0058489 | |||||||||||||||||
2013-05-07 15:43 | shankarb | Status | resolved => closed | ||||||||||||||||
2013-05-07 15:43 | shankarb | Fixed in Version | => 3.0MP23 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|