details: https://code.openbravo.com/erp/devel/pi/rev/b5f0e719c9c2
changeset: 16734:b5f0e719c9c2
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Mon Jun 04 11:01:30 2012 +0200
summary: 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.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
| 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 1d31ea9c1122 -r b5f0e719c9c2
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
Sat Jun 02 17:17:21 2012 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
Mon Jun 04 11:01:30 2012 +0200
@@ -2216,6 +2216,9 @@
editForm.clearValues();
// clear the errors so that they don't show up at the next row
editForm.clearErrors();
+ // do not save the focus item to prevent wrong validations when creating
a new row
+ // see issue 20537 (https://issues.openbravo.com/view.php?id=20537)
+ editForm.setFocusItem(null);
}
delete this._hidingInlineEditor;
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits