Project

General

Profile

Bug #17276 » foreign_unique.diff

Administrator Admin, 2007-05-07 16:04

View differences:

../../../typo3_src-4.1.1/t3lib/jsfunc.inline.js 2007-05-07 15:54:45.000000000 +0200
// 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') {
(1-1/2)