details:   /erp/devel/pi/rev/5db9f78864bc
changeset: 10902:5db9f78864bc
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Mon Feb 28 10:54:04 2011 +0100
summary:   Fixes issue 16064: Autosave error is triggered when closing a tab, 
even if the form wasn't touched

diffstat:

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

diffs (24 lines):

diff -r 958a5e60ff93 -r 5db9f78864bc 
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 Feb 28 10:39:44 2011 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-form.js
  Mon Feb 28 10:54:04 2011 +0100
@@ -181,11 +181,15 @@
     this.view.statusBar.setNewState(isNew);
     this.view.updateTabTitle();
     this.enableLinkedItemSection(!isNew);
-    
-    if (isNew) {
-      // signal that autosave is needed after this
-      this.view.standardWindow.setDirtyEditForm(this);
-    }
+
+    // see issue:
+    // 16064: Autosave error is triggered when closing a tab, even if the form 
wasn't touched
+    // https://issues.openbravo.com/view.php?id=16064
+    // this is inline with current behavior
+//    if (isNew) {
+//      // signal that autosave is needed after this
+//      this.view.standardWindow.setDirtyEditForm(this);
+//    }
   },
   
   // reset the focus item to the first item which can get focus

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to