Index: t3lib/jsfunc.inline.js =================================================================== --- t3lib/jsfunc.inline.js (Revision 2688) +++ t3lib/jsfunc.inline.js (Arbeitskopie) @@ -35,7 +35,11 @@ lockedAjaxMethod: {}, data: {}, - addToDataArray: function(object) { for (var i in object) { this.data[i] = $H(this.data[i]).merge(object[i]); } }, + addToDataArray: function(object) { + $H(object).each(function(pair) { + inline.data[pair.key] = $H(inline.data[pair.key]).merge(pair.value).toObject(); + }); + }, setPrependFormFieldNames: function(value) { this.prependFormFieldNames = value; }, setNoTitleString: function(value) { this.noTitleString = value; }, @@ -463,6 +467,7 @@ }, revertUnique: function(objectPrefix, elName, recordUid) { + if (this.data.unique && this.data.unique[objectPrefix]) { var unique = this.data.unique[objectPrefix]; var fieldObj = elName ? document.getElementsByName(elName+'['+unique.field+']') : null; @@ -495,6 +500,7 @@ // alert(objectPrefix+'/'+recordUid); delete(this.data.unique[objectPrefix].used[recordUid]) } + } }, enableDisableRecord: function(objectId) { @@ -522,7 +528,7 @@ var beforeDeleteIsBelowMax = this.isBelowMax(objectPrefix); // revert the unique settings if available - if (this.data.unique && this.data.unique[objectPrefix]) this.revertUnique(objectPrefix, elName, recordUid); + this.revertUnique(objectPrefix, elName, recordUid); // if the record is new and was never saved before, just remove it from DOM if (this.isNewRecord(objectId)) {