rem: if (unique.selector && selectedValue) { 
add: if (unique.selector == 'select' && selectedValue) { 
context: 	setUnique: function(objectId, recordUid, selectedValue) {		if (this.data.unique && this.data.unique[objectId]) {			var unique = this.data.unique[objectId];				// remove used items from each select-field of the child records			if (!(unique.selector && unique.max == -1)) {				var elName = this.parseFormElementName('full', objectId, 1)+'['+recordUid+']['+unique.field+']';				var formName = this.prependFormFieldNames+this.parseFormElementName('parts', objectId, 3, 1);				var fieldObj = document.getElementsByName(elName);				var values = $H(unique.used).values();								if (fieldObj.length) {						// remove all before used items from the new select-item					for (var i=0; i<values.length; i++) this.removeSelectOption(fieldObj[0], values[i]);						// set the selected item automatically to the first of the remaining items					selectedValue = fieldObj[0].options[0].value;					fieldObj[0].options[0].selected = true;					this.updateUnique(fieldObj[0], objectId, formName, recordUid);					this.handleChangedField(fieldObj[0], objectId+'['+recordUid+']');					if (typeof this.data.unique[objectId]['used'].length != 'undefined')						this.data.unique[objectId]['used'] = {};					this.data.unique[objectId]['used'][recordUid] = selectedValue;				}			}							// remove used items from a selector-box			if (unique.selector && selectedValue) {				var selector = $(objectId+'_selector');				this.removeSelectOption(selector, selectedValue);				this.data.unique[objectId]['used'][recordUid] = selectedValue;			}		}	},
meta: 9100	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9100/e66275acdf79f04c346d13ed2af3e69335402d79/jsfunc.inline.js/buggy/t3lib/jsfunc.inline.js