Project

General

Profile

Actions

Bug #23818

closed

"Hidden"-Funcanality brocken: JS-Error "formObj[0] is undefined"

Added by Andy Grunwald over 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-10-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If you have a record with a irre child record and you open the parent record and DONT open the irre child record, the hidden functionality (click on the bulb on the right of the irre record) don`t work.

A javascript error will be thrown:

formObj0 is undefined

This error occur in the following method:
enableDisableRecord: function(objectId) {
var elName = this.parseObjectId('full', objectId, 2, 0, true);
var imageObj = $(objectId+'_disabled');
var valueObj = document.getElementsByName(elName+'[hidden]');
var formObj = document.getElementsByName(elName+'[hidden]_0');
var imagePath = '';

if (valueObj && formObj) {
formObj[0].click();
imagePath = this.parsePath(imageObj.src);
imageObj.src = imagePath+(valueObj[0].value > 0 ? 'button_unhide.gif' : 'button_hide.gif');
}
return false;
...

If you open the irre child record, a click on the bulb will check the hidden checkbox.

(issue imported from #M16102)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #23580: Icon for hidden field doesn't work with IRREClosed2010-09-22

Actions

No data to display

Actions

Also available in: Atom PDF