Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0040574 | Openbravo ERP | 05. Production management | public | 2019-04-10 11:41 | 2019-06-05 20:54 |
|
Reporter | shuehner | |
Assigned To | nonofrancisco | |
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 | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0040574: SequenceProductCreate.getLineNum is not using bind-parameters |
Description | 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); |
Steps To Reproduce | - |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0040832 | 3.0PR19Q2.1 | closed | nonofrancisco | SequenceProductCreate.getLineNum is not using bind-parameters | depends on | backport | 0040833 | 3.0PR19Q1.2 | closed | nonofrancisco | SequenceProductCreate.getLineNum is not using bind-parameters | 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 |
2019-04-10 11:41 | shuehner | New Issue | |
2019-04-10 11:41 | shuehner | Assigned To | => Triage Finance |
2019-04-10 11:41 | shuehner | Modules | => Core |
2019-04-10 11:41 | shuehner | Triggers an Emergency Pack | => No |
2019-04-10 11:41 | shuehner | Relationship added | blocks 0038136 |
2019-05-02 05:24 | nonofrancisco | Status | new => scheduled |
2019-05-03 11:58 | Sandrahuguet | Assigned To | Triage Finance => nonofrancisco |
2019-05-09 23:24 | nonofrancisco | Status | scheduled => acknowledged |
2019-05-09 23:25 | nonofrancisco | Status | acknowledged => scheduled |
2019-05-09 23:45 | nonofrancisco | Note Added: 0111608 | |
2019-05-13 12:37 | shuehner | Target Version | => 3.0PR19Q3 |
2019-06-05 13:11 | hgbot | Checkin | |
2019-06-05 13:11 | hgbot | Note Added: 0112417 | |
2019-06-05 13:11 | hgbot | Status | scheduled => resolved |
2019-06-05 13:11 | hgbot | Resolution | open => fixed |
2019-06-05 13:11 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/014ef9ca9806dd5d349dd2b31293a6ffc271e5d6 [^] |
2019-06-05 15:54 | Sandrahuguet | Review Assigned To | => Sandrahuguet |
2019-06-05 15:54 | Sandrahuguet | Note Added: 0112429 | |
2019-06-05 15:54 | Sandrahuguet | Status | resolved => closed |
2019-06-05 15:54 | Sandrahuguet | Fixed in Version | => 3.0PR19Q3 |
2019-06-05 20:54 | hudsonbot | Checkin | |
2019-06-05 20:54 | hudsonbot | Note Added: 0112444 | |
Notes |
|
|
Test Plan
As Openbravo/F&B International Group Admin
Open Activity window
Create a new record
Open Product window
Create a new record
Set production = true
Open Process Plan window
Create a new record
Go to Version tab
Create a new record
Go to Operations tab
Create a new record
Set Activity to the previously created one
Go to I/O Products tab
Create a new record
Set product to the previously created one
Click on Create Product Copy button
Accept default values
Verify a new product is created with line number 20 |
|
|
(0112417)
|
hgbot
|
2019-06-05 13:11
|
|
Repository: erp/devel/pi
Changeset: 014ef9ca9806dd5d349dd2b31293a6ffc271e5d6
Author: Nono Carballo <nonofce <at> gmail.com>
Date: Wed May 01 22:53:24 2019 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/014ef9ca9806dd5d349dd2b31293a6ffc271e5d6 [^]
Fixes issue 40574: Uses bind parameter.
Instead of string concatenation, bind parameter is used to build the query.
---
M src/org/openbravo/erpCommon/ad_actionButton/SequenceProductCreate.java
---
|
|
|
|
|
|
|
|