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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0020537
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2012-05-17 11:512012-06-21 15:41
ReportermtaalView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionfixedFixed in Version3.0MP13
StatusclosedFix in branchFixed in SCM revisionb5f0e719c9c2
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

0020537: Grid editing: field shows short error border when opening a grid line for editing

DescriptionI noticed that when I start editing an existing line in grid that a short error border is shown, it happens on the quantity field.
Steps To ReproduceOpen sales invoice window
Goto lines tab
Create a new line
put the focus in the quantity field (or another required field)
Save it
Then start editing this same line
When starting editing the quantity field shows an error border for a short time
Proposed SolutionI think it has to do with the following:
- when saving the grid hides the form
- the last focus item stays set in the form, it is a required item
- when the form is opened again the system starts with an empty form
- but immediately moves the focus to another item
- which fires validation on the required field

To solve this, when the form gets hidden set the focus item of the grid editing form to null
form.setFocusItem(null)

This can be done in the ob-view-grid.hideInlineEditor method somewhere in the if (editForm) if statement maybe.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0049599)
hgbot (developer)
2012-06-04 11:02

Repository: erp/devel/pi
Changeset: b5f0e719c9c220710f8f15400577e913443d1d89
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Jun 04 11:01:30 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b5f0e719c9c220710f8f15400577e913443d1d89 [^]

Fixes issue 20537: Wrong validation is not launched

When a row was saved, the last focused item was being stored. When that same line was opened to be edited, the validation was launched before fetching the row values, showing an error border on the last focused item. When the row values were fetched, the border went back to normal.

Now, when the form is hidden, it set to null the last focused item, preventing the wrong validation from beig launched.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0049985)
alostale (manager)
2012-06-21 15:41

code reviewed and verified in pi@20d1a6b019e0

- Issue History
Date Modified Username Field Change
2012-05-17 11:51 mtaal New Issue
2012-05-17 11:51 mtaal Assigned To => alostale
2012-05-17 11:51 mtaal Modules => Core
2012-05-22 14:09 alostale Target Version 3.0MP12 =>
2012-06-04 10:55 AugustoMauch Assigned To alostale => AugustoMauch
2012-06-04 11:02 hgbot Checkin
2012-06-04 11:02 hgbot Note Added: 0049599
2012-06-04 11:02 hgbot Status new => resolved
2012-06-04 11:02 hgbot Resolution open => fixed
2012-06-04 11:02 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b5f0e719c9c220710f8f15400577e913443d1d89 [^]
2012-06-21 15:41 alostale Note Added: 0049985
2012-06-21 15:41 alostale Status resolved => closed
2012-06-21 15:41 alostale Fixed in Version => 3.0MP13


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker