[TYPO3-irre] foreign_selector problem.

Nikolas Hagelstein hagelstein at shr.cc
Mon May 7 13:04:36 CEST 2007


Hi,

I was able to narrow to problem down to 

jsfunc.inline.js : setUnique ( ~ line 212)

If i comment out the lines beyond 212  it seems to work:

  // 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;
 // Comment out for testing purpos
 // 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;

Oliver could you point out what those lines are supposed to do exactly?

Bye,
Nikolas





More information about the TYPO3-project-irre mailing list