[TYPO3-irre] Create new relation does nothing

Franz Holzinger franz at fholzinger.com
Thu May 24 14:11:15 CEST 2007


Hello,

I am using the almost the same as described in "Bidirectional asymmetric
m:n relations"

'appearance' => Array ('collapseAll' => TRUE, 'useCombination' => TRUE),

In TCE I see the select box with one entry already made before. And
right of it the Link <Create new relation> which never works.

this.data.unique is undefined. Then the selected is always set to false.
Maybe the function setUniqueElement should have been called before?


importNewRecord: function(objectId) {
var selector = $(objectId+'_selector');
if (selector.selectedIndex != -1) {
	var selectedValue = selector.options[selector.selectedIndex].value;
	if (!this.data.unique || !this.data.unique[objectId]) {
		selector.options[selector.selectedIndex].selected = false;
	}


Under the select box there is also a link. 'Neu anlegen' the same in
German now. This one works if clicked. Then a new relation can be entered.

But how should the first 'create new relation' work? Should this be the
place to select and modify a former entry or what?


- Franz


More information about the TYPO3-project-irre mailing list