[TYPO3-irre] foreign_selector problem (solved).

Nikolas Hagelstein hagelstein at shr.cc
Mon May 7 16:09:59 CEST 2007


Hi,

The following patch should solve this issue:
(see http://bugs.typo3.org/view.php?id=5564 )

Could anyone please confirm?
Cheers,
Nikolas



--- jsfunc.inline.js	2007-04-02 23:41:34.000000000 +0200
+++ ../../../typo3_src-4.1.1/t3lib/jsfunc.inline.js	2007-05-07
15:54:45.000000000 +0200
@@ -210,8 +210,10 @@
 							// 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;
+						selectedValue =
fieldObj[0].value;
+						//selectedValue =
fieldObj[0].options[0].value;
 
fieldObj[0].options[0].selected = true;
+						fieldObj[0].value =
selectedValue;
 
this.updateUnique(fieldObj[0], objectId, formName, recordUid);
 
this.handleChangedField(fieldObj[0], objectId+'['+recordUid+']');
 						if (typeof
this.data.unique[objectId].used.length != 'undefined') {


More information about the TYPO3-project-irre mailing list