details: https://code.openbravo.com/erp/devel/pi/rev/7774d6f61619
changeset: 20750:7774d6f61619
user: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date: Tue Jul 16 11:35:09 2013 +0530
summary: 0024229: When closing new records in form, request is done to child
tabs
When creating a new record in form and closing the form instead of saving, if
the record is getting saved, the child views were refreshed.
But in grid no records were selected. So refreshing the child views only if
there is any selected record.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
| 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r a8b0a0331ab8 -r 7774d6f61619
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
Wed Jul 17 11:20:46 2013 +0530
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
Tue Jul 16 11:35:09 2013 +0530
@@ -1520,7 +1520,11 @@
view.viewGrid.markForRedraw();
keepSelection = true;
- view.refreshChildViews(keepSelection);
+
+ //refresh child views only if there are selected records.
+ if (view.viewGrid && view.viewGrid.getSelectedRecords.length != 0) {
+ view.refreshChildViews(keepSelection);
+ }
// success invoke the action, if any there
view.standardWindow.autoSaveDone(view, true);
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits