mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2024-11-14 18:39:01 +01:00
Fixed error when importing data
This commit is contained in:
parent
fac609cf15
commit
969b9f94a2
@ -310,7 +310,12 @@ MochiKit.Logging.logDebug("--- User.saveRecords - 1");
|
|||||||
MochiKit.Logging.logDebug("--- User.saveRecords - 2");
|
MochiKit.Logging.logDebug("--- User.saveRecords - 2");
|
||||||
*/
|
*/
|
||||||
|
|
||||||
result = {'records': []};
|
result = {
|
||||||
|
'records': {
|
||||||
|
// 'deleted': [],
|
||||||
|
'updated': []
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
deferredResult = new MochiKit.Async.Deferred();
|
deferredResult = new MochiKit.Async.Deferred();
|
||||||
c = someRecords.length;
|
c = someRecords.length;
|
||||||
@ -367,7 +372,7 @@ MochiKit.Logging.logDebug("--- User.saveRecords - 2");
|
|||||||
//deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("User.saveRecords - 6.7 " + res); return res;});
|
//deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("User.saveRecords - 6.7 " + res); return res;});
|
||||||
|
|
||||||
deferredResult.addCallback(function(aResult, res) {
|
deferredResult.addCallback(function(aResult, res) {
|
||||||
aResult['records'] = { 'updated': [res] };
|
aResult['records']['updated'].push(res);
|
||||||
return aResult;
|
return aResult;
|
||||||
}, result);
|
}, result);
|
||||||
//deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("User.saveRecords - 6.8 " + res); return res;});
|
//deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("User.saveRecords - 6.8 " + res); return res;});
|
||||||
|
Loading…
Reference in New Issue
Block a user