Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0003949 | Openbravo ERP | 02. Master data management | public | 2008-06-12 17:01 | 2008-07-01 17:56 | |||||||
Reporter | malsasua | |||||||||||
Assigned To | cromero | |||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | out of date | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | 2.35 | |||||||||||
Target Version | 2.40 | Fixed in Version | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0003949: ad_column_identifier don't work in c_location with locations without region selected | |||||||||||
Description | In this locations, function returns null. The problem is in function ad_column_identifier_ref_sql because it return wrong sql. The sql returned is : SELECT COALESCE(TO_CHAR(T.Address1), ' ')||' - '|| COALESCE(TO_CHAR(T.Address2), ' ')||' - '|| COALESCE(TO_CHAR(T.Postal), ' ')||' - '|| COALESCE(TO_CHAR(T.City), ' ')||' - '|| (SELECT COALESCE(TO_CHAR(TT.Name), ' ') FROM C_Region TT WHERE TT.C_Region_ID=T.C_Region_ID) ||' - '|| (SELECT (SELECT COALESCE(TO_CHAR(MAX(TTT.Name)), TO_CHAR(TT.Name)) FROM C_Country_Trl TTT WHERE TTT.C_Country_ID=TT.C_Country_ID AND TTT.AD_LANGUAGE=L.AD_LANGUAGE) FROM C_Country TT WHERE TT.C_Country_ID=T.C_Country_ID) ||' - '|| COALESCE(TO_CHAR(T.IsActive), ' ') AS COLUMN_IDENTIFIER FROM (SELECT AD_LANGUAGE FROM AD_LANGUAGE WHERE AD_LANGUAGE='es_ES') L, C_Location T WHERE C_Location_Id=:c_ID A example of correct sql is: SELECT TO_CHAR(COALESCE(TO_CHAR(T.Address1),''))||' - '|| TO_CHAR(COALESCE(TO_CHAR(T.Address2),''))||' - '|| TO_CHAR(COALESCE(TO_CHAR(T.Postal),''))||' - '|| TO_CHAR(COALESCE(TO_CHAR(T.City),''))||' - '|| CASE WHEN (SELECT COALESCE(TO_CHAR(TT.Name), ' ') FROM C_Region TT WHERE TT.C_Region_ID=T.C_Region_ID) IS NULL THEN ' ' ELSE (SELECT COALESCE(TO_CHAR(TT.Name), ' ') FROM C_Region TT WHERE TT.C_Region_ID=T.C_Region_ID) END ||' - ' || (SELECT (SELECT COALESCE(TO_CHAR(MAX(TTT.Name)), TO_CHAR(TT.Name)) FROM C_Country_Trl TTT WHERE TTT.C_Country_ID=TT.C_Country_ID AND TTT.AD_LANGUAGE=L.AD_LANGUAGE) FROM C_Country TT WHERE TT.C_Country_ID=T.C_Country_ID) ||' - '||TO_CHAR(COALESCE(TO_CHAR(T.IsActive),'')) AS COLUMN_IDENTIFIER FROM (SELECT AD_LANGUAGE FROM AD_LANGUAGE WHERE AD_LANGUAGE=:c_language) L, C_Location T WHERE C_Location_ID=:c_ID | |||||||||||
Steps To Reproduce | ||||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | Wad.java (174,140) 2008-06-17 08:53 https://issues.openbravo.com/file_download.php?file_id=83&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2008-06-12 17:01 | malsasua | New Issue | ||||||||||
2008-06-12 17:01 | malsasua | Assigned To | => cromero | |||||||||
2008-06-16 10:43 | psarobe | Status | new => scheduled | |||||||||
2008-06-16 10:43 | psarobe | Note Added: 0007724 | ||||||||||
2008-06-16 19:02 | cromero | Note Added: 0007747 | ||||||||||
2008-06-17 08:53 | malsasua | File Added: Wad.java | ||||||||||
2008-06-17 08:55 | malsasua | Note Added: 0007757 | ||||||||||
2008-06-17 13:47 | cromero | Target Version | => 2.40 | |||||||||
2008-06-17 13:47 | cromero | Status | scheduled => feedback | |||||||||
2008-06-17 13:47 | cromero | Status | feedback => scheduled | |||||||||
2008-06-17 14:18 | cromero | Status | scheduled => closed | |||||||||
2008-06-17 14:18 | cromero | Note Added: 0007797 | ||||||||||
2008-06-17 14:18 | cromero | Resolution | open => out of date | |||||||||
2008-07-01 17:56 | anonymous | sf_bug_id | 0 => 2007951 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|