Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0033432 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
design defect | [Openbravo ERP] A. Platform | minor | always | 2016-07-05 13:37 | 2022-02-01 08:09 | ||||||
Reporter | NaroaIriarte | View Status | public | ||||||||
Assigned To | Triage Platform Base | ||||||||||
Priority | normal | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
Projection | none | ETA | none | Target Version | |||||||
OS | Any | Database | Any | Java version | |||||||
OS Version | Database version | Ant version | |||||||||
Product Version | SCM revision | ||||||||||
Review Assigned To | |||||||||||
Web browser | |||||||||||
Modules | Core | ||||||||||
Regression level | |||||||||||
Regression date | |||||||||||
Regression introduced in release | |||||||||||
Regression introduced by commit | |||||||||||
Triggers an Emergency Pack | No | ||||||||||
Summary | 0033432: Wrong data can be saved when using fields with display logic. | ||||||||||
Description | If there is a field with a display logic, it can occur that sometimes wrong data is saved in some records. If for example there is a field "A" which has a display logic based on another field "B", and the field "A" is displayed when the field "B" is checked. If there is a saved record, you open it to edit it and uncheck the "B" field, you can already see the "A" field and modify it, this is not right. If you save that record, the data of the display logic field will be also stored. | ||||||||||
Steps To Reproduce | 1-Install retail modules. 2- Login the ERP with the System Admin role. 3- Go to modules and sete the "org.openbravo.retail.config" in development. 4-Go to 'Windows, Tabs and Fields' window. 5-Search Assortment window and select the Product tab. 6-Then add new record in Field tab. 6.1- Name: Stocked. 6.2- Property: product.stocked 6.3- Save. 7-Edit Bestseller field. 7.1- Display Logic: @inp_propertyField_stocked_IsStocked@=true 7.2- Save. 8-Logout, restat tomcat and compile the app. 9- Login to the ERP as the "The White Valley Goup Admin- The White Valley Group" role. 10- Go to Assortment window an select White Valley Group Product List. 11- Go to Product tab and click on create new product in form view. 12- In the product dropdown select "Alpine skiing backpack 27 L" and save the record. 13- Realize that the bestseller field is shown, because the stocked field is checked. 14- Now, edit the same record and choose "Gift Card Infinite". Realize that the bestseller field is already shown, this is normal because it will not change untill we save, but realize also that you can modify the value of that field. 15- Save the record an realize that the "bestseller" field is no longer shown. But you have been able to modify the data and that is not correct. | ||||||||||
Proposed Solution | Maybe create an event handler to handle the fields in these cases. The value of the display logic field should be a default value defined in the database. | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Issue History | |||
Date Modified | Username | Field | Change |
2016-07-05 13:37 | NaroaIriarte | New Issue | |
2016-07-05 13:37 | NaroaIriarte | Assigned To | => platform |
2016-07-05 13:37 | NaroaIriarte | Modules | => Core |
2016-07-05 13:37 | NaroaIriarte | Triggers an Emergency Pack | => No |
2016-07-06 08:59 | NaroaIriarte | Proposed Solution updated | |
2016-07-08 07:43 | alostale | Status | new => acknowledged |
2016-07-08 07:43 | alostale | Type | defect => design defect |
2022-02-01 08:09 | alostale | Assigned To | platform => Triage Platform Base |
Copyright © 2000 - 2009 MantisBT Group |