Opened 11 years ago

Last modified 10 years ago

#13037 closed defect

ObjectStore unresolved jr, dirtyObject variables — at Version 1

Reported by: bill Owned by: Kris Zyp
Priority: high Milestone: 1.7
Component: Data Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

jr is apparently undefined in:

dojo.connect(kwArgs,"onError",function(){
	if(kwArgs.revertOnError !== false){
		var postCommitDirtyObjects = dirtyObjects;
		dirtyObjects = savingObjects;
		var numDirty = 0; // make sure this does't do anything if it is called again
		jr.revert(); // revert if there was an error
		self._dirtyObjects = postCommitDirtyObjects;
	}
	else{
		self._dirtyObjects = dirtyObject.concat(savingObjects);
	}
});

Presumably that means you are missing a test for revert.

Also, dirtyObject on the second-to-last line of:

dojo.connect(kwArgs,"onError",function(){
	if(kwArgs.revertOnError !== false){
		var postCommitDirtyObjects = dirtyObjects;
		dirtyObjects = savingObjects;
		var numDirty = 0; // make sure this does't do anything if it is called again
		jr.revert(); // revert if there was an error
		self._dirtyObjects = postCommitDirtyObjects;
	}
	else{
		self._dirtyObjects = dirtyObject.concat(savingObjects);
	}
});

Change History (1)

comment:1 Changed 11 years ago by bill

Description: modified (diff)
Summary: ObjectStore unresolved jr variableObjectStore unresolved jr, dirtyObject variables
Note: See TracTickets for help on using tickets.