details:   https://code.openbravo.com/erp/devel/pi/rev/8a09d93b4149
changeset: 17740:8a09d93b4149
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Wed Aug 22 11:03:59 2012 +0200
summary:   Fixes issue 21411: Child views are refreshed when saving a form

Before the fix, the child views were only refreshed when the record that was 
saved was new. Now, it does it always.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
 |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (14 lines):

diff -r 5e6ee61bc8c2 -r 8a09d93b4149 
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 Aug 22 10:38:48 2012 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Wed Aug 22 11:03:59 2012 +0200
@@ -1473,9 +1473,7 @@
 
         view.viewGrid.markForRedraw();
 
-        if (form.isNew) {
-          view.refreshChildViews();
-        }
+        view.refreshChildViews();
 
         // success invoke the action, if any there
         view.standardWindow.autoSaveDone(view, true);

------------------------------------------------------------------------------
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

Reply via email to