#23818"Hidden"-Funcanality brocken: JS-Error "formObj[0] is undefined"
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) {
formObj0.click();
imagePath = this.parsePath(imageObj.src);
imageObj.src = imagePath+(valueObj0.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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.