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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033432
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformminoralways2016-07-05 13:372022-02-01 08:09
ReporterNaroaIriarteView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
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

0033432: Wrong data can be saved when using fields with display logic.

DescriptionIf 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 Reproduce1-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 SolutionMaybe 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

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