details:   https://code.openbravo.com/erp/devel/pi/rev/af8eea02fadc
changeset: 21054:af8eea02fadc
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Mon Sep 02 09:43:20 2013 +0200
summary:   Fixes issue 24645: Records can be saved several times in form view

This issue was caused by this changeset [1]. This happens because when the 
record is changed after receiving the response of the datasource (when a record 
is edited the 'updated' column is always changed), the property 
textField._textChanged remains true, when it should be deleted after the change 
has been done.

[1] https://code.openbravo.com/erp/devel/pi/rev/4060f2b5e6bd

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
 |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r ec38e9e50a6a -r af8eea02fadc 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
        Fri Aug 30 18:54:36 2013 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
        Mon Sep 02 09:43:20 2013 +0200
@@ -379,6 +379,12 @@
     return true;
   },
 
+  formSaved: function (request, response, data) {
+    if (this.textField) {
+      delete this.textField._textChanged;
+    }
+  },
+
   validators: [{
     type: 'custom',
     condition: function (item, validator, value) {

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to