Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0032759 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | critical | always | 2016-04-21 18:02 | 2016-06-17 19:37 | |||
Reporter | aferraz | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR16Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 67de26cb3884 | ||||
Projection | none | ETA | none | Target Version | 3.0PR16Q3 | |||
OS | Linux 64 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||
OS Version | Professional Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | caristu | |||||||
OBNetwork customer | No | |||||||
Web browser | Google Chrome | |||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0032759: Wrong on change function called in process definition | |||||||
Description | Wrong on change function is called when opening a process definition from another process definition and both have a parameter with the same name | |||||||
Steps To Reproduce | As F&B Admin: - Create a Payment In for "España Norte" organization and process it. - Create a Payment In for "España Sur" organization and process it. - Go to Financial Account window and select "Cuenta de Banco" account. - Create a record in Imported Bank Statements tab with any name. - Create a record in Bank Statement Lines tab with any reference no and amount in. - Move back to Imported Bank Statements tab and click on Process button. - Click on Match Statement button. - Click on Cancel on Confirm popup. - Click on + button on any record of Match Statement process definition. - Change value of Organization parameter in Add new transaction process definition to "España Norte" organization and realize OB.APRM.AddTransaction.organizationOnChangeFunction javascript function is called (ad_org_id on change function of Add Transaction process definition). - Click on Payment selector drop down and realize you see created payment for "España Norte" organization. - Click on + button of Payment selector. - Click on Cancel button on Add Payment process definition. - Change value of Organization parameter in Add new transaction process definition to "España Sur" organization and realize OB.APRM.AddPayment.organizationOnChange javascript function is called (ad_org_id on change function of Add Payment process definition) which is wrong. - Click on Payment selector drop down and realize you still see created payment for "España Norte" organization instead of created payment for "España Sur" organization. - Click on Payment selector drop down and select created payment for "España Norte" organization and click on Done button. Realize in Financial Account Transaction tab, you have just created a transaction for "España Sur" organization with a payment for "España Norte" organization, which is wrong. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0085845) aferraz (viewer) 2016-04-21 18:44 |
Set as critical as it can create inconsistent data. |
(0086156) hgbot (developer) 2016-05-03 14:02 |
Repository: erp/devel/pi Changeset: 67de26cb388462a20ff74f1a2320e09802f86bda Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Tue May 03 11:08:48 2016 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/67de26cb388462a20ff74f1a2320e09802f86bda [^] fixed bug 32759: Wrong on change function called in process definition When opening a Process Definition from another one, in case both of them have parameters with the same name having them on change function, when closing 2nd processes and changing value from one of these fields, function on 2nd process was invoked instead of the one in 1st one. On change functions are registered as pair of [viewId, fieldName] in order to be unique. In the case of process definition viewId was undefined, so when opening 2nd process, first registered function was overwritten. The problem is now fixed by using processId to register in case viewId is not defined. --- M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-base-parameter-window-view.js M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js --- |
(0086211) caristu (viewer) 2016-05-05 13:03 |
Code review + testing OK: Following steps to reproduce, the OB.APRM.AddTransaction.organizationOnChangeFunction function is called also the second time (after closing the add payment process) |
(0087512) hudsonbot (viewer) 2016-06-17 19:37 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0dc7be081b1c [^] Maturity status: Test |
![]() |
|||
Date Modified | Username | Field | Change |
2016-04-21 18:02 | aferraz | New Issue | |
2016-04-21 18:02 | aferraz | Assigned To | => platform |
2016-04-21 18:02 | aferraz | OBNetwork customer | => No |
2016-04-21 18:02 | aferraz | Web browser | => Google Chrome |
2016-04-21 18:02 | aferraz | Modules | => Core |
2016-04-21 18:02 | aferraz | Triggers an Emergency Pack | => No |
2016-04-21 18:02 | aferraz | Relationship added | related to 0032654 |
2016-04-21 18:20 | aferraz | Web browser | Google Chrome => Google Chrome |
2016-04-21 18:20 | aferraz | Severity | major => critical |
2016-04-21 18:44 | aferraz | Web browser | Google Chrome => Google Chrome |
2016-04-21 18:44 | aferraz | Note Added: 0085845 | |
2016-04-21 18:44 | aferraz | Steps to Reproduce Updated | View Revisions |
2016-05-03 11:02 | alostale | Assigned To | platform => alostale |
2016-05-03 11:02 | alostale | Status | new => scheduled |
2016-05-03 14:02 | hgbot | Checkin | |
2016-05-03 14:02 | hgbot | Note Added: 0086156 | |
2016-05-03 14:02 | hgbot | Status | scheduled => resolved |
2016-05-03 14:02 | hgbot | Resolution | open => fixed |
2016-05-03 14:02 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/67de26cb388462a20ff74f1a2320e09802f86bda [^] |
2016-05-03 14:02 | alostale | Review Assigned To | => caristu |
2016-05-03 14:02 | alostale | Web browser | Google Chrome => Google Chrome |
2016-05-05 13:03 | caristu | Note Added: 0086211 | |
2016-05-05 13:03 | caristu | Status | resolved => closed |
2016-05-05 13:03 | caristu | Fixed in Version | => 3.0PR16Q3 |
2016-06-17 19:37 | hudsonbot | Checkin | |
2016-06-17 19:37 | hudsonbot | Note Added: 0087512 |
Copyright © 2000 - 2009 MantisBT Group |