Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0016494 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2011-03-25 15:54 | 2011-04-07 00:00 | |||
Reporter | marvintm | View Status | public | |||||
Assigned To | marvintm | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 3021389f1857 | ||||
Projection | none | ETA | none | Target Version | 3.0RC6 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
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 | 0016494: If a column has a default which starts with @SQL and has parameters, it will not be correctly computed | |||||||
Description | If a column has a default value, which is an SQL expression (and therefore, it starts with @SQL), which contains parameters, the UIDefinition will not set the parameters with the correct value, and therefore the result will not be the expected one. | |||||||
Steps To Reproduce | Set the following default for the C_BPARTNER_Id column of the C_Order table: @SQL=SELECT c_bpartner_id FROM ad_user WHERE ad_user_id=@AD_USER_ID@ Define a business partner for a user. Log with this user, and try to create a sales order. Verify that the business partner you defined for the user is not choosen automatically in your new order. | |||||||
Proposed Solution | The getContext() method should be used if there is no value for a parameter in the request. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0035254) hgbot (developer) 2011-03-25 16:03 |
Repository: erp/devel/pi Changeset: 3021389f1857ffb6437f74a546b0b7a688bdaac1 Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Fri Mar 25 16:01:23 2011 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/3021389f1857ffb6437f74a546b0b7a688bdaac1 [^] Fixed issue 16494. Parameter values for @SQL parameters will be computed with getContext if they are not in the request --- M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/UIDefinition.java --- |
(0035658) iperdomo (viewer) 2011-04-06 13:49 |
Tested on pi @ rev a8d8d76948f2 |
![]() |
|||
Date Modified | Username | Field | Change |
2011-03-25 15:54 | marvintm | New Issue | |
2011-03-25 15:54 | marvintm | Assigned To | => marvintm |
2011-03-25 15:54 | marvintm | Modules | => Core |
2011-03-25 15:54 | marvintm | OBNetwork customer | => No |
2011-03-25 16:03 | hgbot | Checkin | |
2011-03-25 16:03 | hgbot | Note Added: 0035254 | |
2011-03-25 16:03 | hgbot | Status | new => resolved |
2011-03-25 16:03 | hgbot | Resolution | open => fixed |
2011-03-25 16:03 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/3021389f1857ffb6437f74a546b0b7a688bdaac1 [^] |
2011-04-06 13:49 | iperdomo | Note Added: 0035658 | |
2011-04-06 13:49 | iperdomo | Status | resolved => closed |
2011-04-07 00:00 | anonymous | sf_bug_id | 0 => 3278054 |
Copyright © 2000 - 2009 MantisBT Group |