View | Details | Raw Unified | Return to bug 26543 | Differences between
and this patch

Collapse All | Expand All

(-)umc/widgets/Form.js (-1 / +8 lines)
 Lines 434-440    Link Here 
434
			deferred = this.moduleStore.add(values);
434
			deferred = this.moduleStore.add(values);
435
		}
435
		}
436
		else {
436
		else {
437
			deferred = this.moduleStore.put(values);
437
			// prepare an options dict containing the original id of the object
438
			// (in case the object id is being changed)
439
			var options = {};
440
			var idProperty = dojo.getObject('moduleStore.idProperty', false, this);
441
			if (idProperty) {
442
				options[idProperty] = this._loadedID;
443
			}
444
			deferred = this.moduleStore.put(values, options);
438
		}
445
		}
439
		deferred = deferred.then(dojo.hitch(this, function(data) {
446
		deferred = deferred.then(dojo.hitch(this, function(data) {
440
			// fire event
447
			// fire event

Return to bug 26543