details:   /erp/devel/pi/rev/e6a882103e7d
changeset: 11461:e6a882103e7d
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Mon Apr 04 17:05:19 2011 +0200
summary:   Fixes issue 16328: Saving a header could not activate the lines 
creation

diffstat:

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

diffs (26 lines):

diff -r 522349ece7dd -r e6a882103e7d 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
  Mon Apr 04 16:31:03 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
  Mon Apr 04 17:05:19 2011 +0200
@@ -113,7 +113,7 @@
   
   editRecord: function(record, preventFocus, hasChanges, focusFieldName){
     var ret = this.Super('editRecord', arguments);
-    this.doEditRecordActions(preventFocus, false);
+    this.doEditRecordActions(preventFocus, record._new);
     if (hasChanges) {
       this.setHasChanged(true);
     }
@@ -870,7 +870,12 @@
         view.setRecentDocument(this.getValues());
         
         view.updateLastSelectedState();
-        
+                
+        // remove any new pointer
+        if (this.getValue('_new')) {
+          this.clearValue('_new');
+        }
+
         if (form.isNew) {
           view.refreshChildViews();
         }

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to