Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0040833Openbravo ERP05. Production managementpublic2019-04-10 11:412019-06-05 15:54
shuehner 
nonofrancisco 
normalminorhave not tried
closedfixed 
5
 
3.0PR19Q1.23.0PR19Q1.2 
Sandrahuguet
Core
No
0040833: SequenceProductCreate.getLineNum is not using bind-parameters
This code is not using bind-params:

    String hql = " SELECT COALESCE(MAX(l.lineNo),0)+10 AS DefaultValue FROM ManufacturingOperationProduct l WHERE l.mASequence.id= '"
        + SequenceId + "'";
    Query<Long> q = OBDal.getInstance().getSession().createQuery(hql, Long.class);
-
No tags attached.
blocks defect 00405743.0PR19Q3 closed nonofrancisco SequenceProductCreate.getLineNum is not using bind-parameters 
Issue History
2019-05-09 23:25nonofranciscoTypedefect => backport
2019-05-09 23:25nonofranciscoTarget Version => 3.0PR19Q1.2
2019-06-05 15:26hgbotCheckin
2019-06-05 15:26hgbotNote Added: 0112425
2019-06-05 15:26hgbotStatusscheduled => resolved
2019-06-05 15:26hgbotResolutionopen => fixed
2019-06-05 15:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR19Q1.2/rev/43a60afc9f2d5c2d83dce9c8b5c9f3ccae8094af [^]
2019-06-05 15:54SandrahuguetReview Assigned To => Sandrahuguet
2019-06-05 15:54SandrahuguetNote Added: 0112427
2019-06-05 15:54SandrahuguetStatusresolved => closed
2019-06-05 15:54SandrahuguetFixed in Version => 3.0PR19Q1.2

Notes
(0112425)
hgbot   
2019-06-05 15:26   
Repository: erp/backports/3.0PR19Q1.2
Changeset: 43a60afc9f2d5c2d83dce9c8b5c9f3ccae8094af
Author: Nono Carballo <nonofce <at> gmail.com>
Date: Wed May 01 22:53:24 2019 -0400
URL: http://code.openbravo.com/erp/backports/3.0PR19Q1.2/rev/43a60afc9f2d5c2d83dce9c8b5c9f3ccae8094af [^]

Fixes issue 40833: Uses bind parameter.

Instead of string concatenation, bind parameter is used to build the query.

---
M src/org/openbravo/erpCommon/ad_actionButton/SequenceProductCreate.java
---
(0112427)
Sandrahuguet   
2019-06-05 15:54   
code review + testing ok