changeset 7bfae4f854b5 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=7bfae4f854b5
description:
        Restore test of modified_fields with isEmptyObject

        issue11059
diffstat:

 src/model.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 34d4bf8dedb4 -r 7bfae4f854b5 src/model.js
--- a/src/model.js      Sat Apr 02 15:48:16 2022 +0200
+++ b/src/model.js      Sat Apr 02 18:18:44 2022 +0200
@@ -324,7 +324,7 @@
             });
             ids.forEach(function(id) {
                 var record = this.get(id);
-                if (record && !record.modified_fields) {
+                if (record && jQuery.isEmptyObject(record.modified_fields)) {
                     record.cancel();
                 }
             }.bind(this));

Reply via email to