Openbravo Issue Tracking System - Openbravo ERP |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0016494 | Openbravo ERP | A. Platform | public | 2011-03-25 15:54 | 2011-04-07 00:00 |
|
| Reporter | marvintm | |
| Assigned To | marvintm | |
| Priority | normal | Severity | major | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | | |
| Target Version | 3.0RC6 | Fixed in Version | | |
| 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. |
| Additional Information | |
| Tags | No tags attached. |
| Relationships | |
| Attached Files | |
|
| 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 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 |