Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0040575 | Openbravo ERP | 02. Master data management | public | 2019-04-10 11:48 | 2019-06-28 12:44 |
Reporter | shuehner | ||||
Assigned To | shuehner | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | 3.0PR19Q3 | Fixed in Version | 3.0PR19Q3 | ||
Merge Request Status | |||||
Review Assigned To | Sandrahuguet | ||||
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 | 0040575: SL_BPartnerLocation should be cleaned up to not run .toString() on a String variable | ||||
Description | Probably effect of copy'n'paste without good reason: String hql = "" + // "select count(distinct c.id) " + // "from BusinessPartnerLocation bpl " + // "inner join bpl.locationAddress as ad " + // "inner join ad.country as c " + // "where bpl.businessPartner.id = :bPartnerId " + // "and bpl.taxLocation = true " + // "and c.id <> :countryId "; // Query<Long> query = OBDal.getInstance() .getSession() .createQuery(hql.toString(), Long.class); That extra toString is just useless. Probably confusing hql variable to be StringBuffer/StringBuilder. All toString for 'hql' variable in that file (several) should be removed. | ||||
Steps To Reproduce | - | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2019-04-10 11:48 | shuehner | New Issue | |||
2019-04-10 11:48 | shuehner | Assigned To | => Triage Finance | ||
2019-04-10 11:48 | shuehner | OBNetwork customer | => No | ||
2019-04-10 11:48 | shuehner | Modules | => Core | ||
2019-04-10 11:48 | shuehner | Triggers an Emergency Pack | => No | ||
2019-05-13 12:38 | shuehner | Target Version | => 3.0PR19Q3 | ||
2019-06-25 10:14 | shuehner | Assigned To | Triage Finance => shuehner | ||
2019-06-27 17:52 | shuehner | Summary | SL_BParnterLocation should be cleaned up to not run .toString() on a String variable => SL_BPartnerLocation should be cleaned up to not run .toString() on a String variable | ||
2019-06-27 17:58 | hgbot | Checkin | |||
2019-06-27 17:58 | hgbot | Note Added: 0113072 | |||
2019-06-27 17:58 | hgbot | Status | new => resolved | ||
2019-06-27 17:58 | hgbot | Resolution | open => fixed | ||
2019-06-27 17:58 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/3610767cf5cefd4162e9da8407a846d93c47f0a6 [^] | ||
2019-06-28 11:17 | Sandrahuguet | Review Assigned To | => Sandrahuguet | ||
2019-06-28 12:44 | Sandrahuguet | Note Added: 0113104 | |||
2019-06-28 12:44 | Sandrahuguet | Status | resolved => closed | ||
2019-06-28 12:44 | Sandrahuguet | Fixed in Version | => 3.0PR19Q3 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|