Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0038141 | Openbravo ERP | 07. Sales management | public | 2018-03-14 15:09 | 2018-03-19 16:19 |
|
Reporter | shuehner | |
Assigned To | Sandrahuguet | |
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.0PR18Q2 | |
Merge Request Status | |
Review Assigned To | aferraz |
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 | 0038141: FIN_Utility.getDocumentType is not using bind-variables |
Description | The following code is not using bind-variables:
see tracking issue for list of reasons why that is bad.
whereOrderByClause.append(" as dt where dt.organization.id in (");
whereOrderByClause.append(Utility.getInStrSet(new OrganizationStructureProvider()
.getParentTree(org.getId(), true)));
whereOrderByClause.append(") and dt.client.id = '" + client.getId()
+ "' and dt.documentCategory = '" + docCategory + "' order by ad_isorgincluded('"
+ org.getId() + "', dt.organization.id, '" + client.getId()
+ "') , dt.default desc, dt.id desc");
OBQuery<DocumentType> dt = OBDal.getInstance().createQuery(DocumentType.class,
whereOrderByClause.toString());
|
Steps To Reproduce | - |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | design defect | 0038136 | | acknowledged | Triage Platform Base | Tracking issue: Find & Fix queries not using bind-params but embedding values into query string |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2018-03-14 15:09 | shuehner | New Issue | |
2018-03-14 15:09 | shuehner | Assigned To | => Triage Finance |
2018-03-14 15:09 | shuehner | Modules | => Core |
2018-03-14 15:09 | shuehner | Triggers an Emergency Pack | => No |
2018-03-14 15:09 | shuehner | Relationship added | blocks 0038136 |
2018-03-14 16:34 | shuehner | Assigned To | Triage Finance => Sandrahuguet |
2018-03-15 11:29 | Sandrahuguet | Status | new => scheduled |
2018-03-16 08:21 | hgbot | Checkin | |
2018-03-16 08:21 | hgbot | Note Added: 0103300 | |
2018-03-16 08:22 | hgbot | Status | scheduled => resolved |
2018-03-16 08:22 | hgbot | Resolution | open => fixed |
2018-03-16 08:22 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/6033a86144f7ea740edff36bd207aeb060be1426 [^] |
2018-03-16 08:32 | Sandrahuguet | Review Assigned To | => aferraz |
2018-03-16 12:00 | hgbot | Checkin | |
2018-03-16 12:00 | hgbot | Note Added: 0103312 | |
2018-03-16 12:06 | aferraz | Note Added: 0103313 | |
2018-03-16 12:06 | aferraz | Status | resolved => closed |
2018-03-16 12:06 | aferraz | Fixed in Version | => 3.0PR18Q2 |
2018-03-16 17:29 | hudsonbot | Checkin | |
2018-03-16 17:29 | hudsonbot | Note Added: 0103328 | |
2018-03-19 16:19 | hudsonbot | Checkin | |
2018-03-19 16:19 | hudsonbot | Note Added: 0103350 | |
Notes |
|
(0103300)
|
hgbot
|
2018-03-16 08:21
|
|
Repository: erp/devel/pi
Changeset: 6033a86144f7ea740edff36bd207aeb060be1426
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Thu Mar 15 16:21:15 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/6033a86144f7ea740edff36bd207aeb060be1426 [^]
Fixed issue 38141 use bind-variables in FIN_Utility.getDocumentType
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_Utility.java
---
|
|
|
(0103312)
|
hgbot
|
2018-03-16 12:00
|
|
Repository: erp/devel/pi
Changeset: 57d94fae1907b4c2371488fbafd6f0f45bd3dc60
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Mar 16 11:59:46 2018 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/57d94fae1907b4c2371488fbafd6f0f45bd3dc60 [^]
Related to issue 38141: Code review improvements
Make query more readable.
Update license year.
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_Utility.java
---
|
|
|
|
|
|
|
|
|
|
|