From 0e407eb6a65c546ca8ec6025610c579020efd322 Mon Sep 17 00:00:00 2001 From: Giulio Cesare Solaroli Date: Fri, 8 Apr 2016 18:06:37 +0200 Subject: [PATCH] Fixed problem with card Cloning --- frontend/delta/js/Clipperz/PM/DataModel/User.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/frontend/delta/js/Clipperz/PM/DataModel/User.js b/frontend/delta/js/Clipperz/PM/DataModel/User.js index 1e42760..bd13ec8 100644 --- a/frontend/delta/js/Clipperz/PM/DataModel/User.js +++ b/frontend/delta/js/Clipperz/PM/DataModel/User.js @@ -836,13 +836,15 @@ Clipperz.log("Warning: User.recordWithLabel('" + aLabel + "') is returning more var user = this; return Clipperz.Async.callbacks("User.cloneRecord", [ - MochiKit.Base.method(this, 'hasPendingChanges'), - Clipperz.Async.deferredIf("User has pending changes", [ - MochiKit.Async.fail - ], [ - MochiKit.Base.method(user, 'createNewRecord'), - MochiKit.Base.methodcaller('setUpWithRecord', aRecord), - ]) +// MochiKit.Base.method(this, 'hasPendingChanges'), +// Clipperz.Async.deferredIf("User has pending changes", [ +/// MochiKit.Async.fail +// ], [ +// MochiKit.Base.method(user, 'createNewRecord'), +// MochiKit.Base.methodcaller('setUpWithRecord', aRecord), +// ]) + MochiKit.Base.method(user, 'createNewRecord'), + MochiKit.Base.methodcaller('setUpWithRecord', aRecord), ], {trace:false}); },