details: https://code.openbravo.com/erp/devel/pi/rev/78ca177ad70d
changeset: 20764:78ca177ad70d
user: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date: Thu Jul 18 09:31:04 2013 +0530
summary: Fixes Issue 24358, backout issue 24229 : backedout changeset
7774d6f61619
The fix block refreshing child views when saving parent on all cases.
But it should be done only when closing the record and switching to grid view.
diffstat:
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
| 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diffs (16 lines):
diff -r 3fec93e4916d -r 78ca177ad70d
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 18:05:41 2013 +0200
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
Thu Jul 18 09:31:04 2013 +0530
@@ -1520,11 +1520,7 @@
view.viewGrid.markForRedraw();
keepSelection = true;
-
- //refresh child views only if there are selected records.
- if (view.viewGrid && view.viewGrid.getSelectedRecords.length !== 0) {
- view.refreshChildViews(keepSelection);
- }
+ 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