Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0016494
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2011-03-25 15:542011-04-07 00:00
ReportermarvintmView Statuspublic 
Assigned Tomarvintm 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision3021389f1857
ProjectionnoneETAnoneTarget Version3.0RC6
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0016494: If a column has a default which starts with @SQL and has parameters, it will not be correctly computed

DescriptionIf 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 ReproduceSet 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 SolutionThe getContext() method should be used if there is no value for a parameter in the request.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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 (reporter)
2011-04-06 13:49

Tested on pi @ rev a8d8d76948f2

- Issue History
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 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
Powered by Mantis Bugtracker