#75420Function checkReference in ElementBrowser.php is unable to get field in Internet Explorer for new elements
Description
This issue affects content elements that use a section > element > field combination. When adding a new content element the element browser is unable to save the selection and just closes the window. This is the extract from the document source when using IE 11:
function checkReference() { //
if (window.opener && window.opener.document && window.opener.document.editform && window.opener.document.editform["data[tt_content][NEW5704b7bd152c56.42149799][pi_flexform][data][optionsSheet][lDEF][slides][el][ID-740b72dddf-idx1459927147151-form][slide][el][linkTarget"] ) {
return window.opener.document.editform["data[tt_content][NEW5704b7bd152c56.42149799][pi_flexform][data][optionsSheet][lDEF][slides][el][ID-740b72dddf-idx1459927147151-form][slide][el][linkTarget"];
} else {
close();
}
}
IE will execute the else block, since window.opener.document.editform[“data[tt_content][NEW5704b7bd152c56.42149799][pi_flexform][data][optionsSheet][lDEF][slides][el][ID-740b72dddf-idx1459927147151-form][slide][el]*[linkTarget*”] will evaluate to “undefined”.
And this is the extract from Firefox:
function checkReference() { //
if (window.opener && window.opener.document && window.opener.document.editform && window.opener.document.editform["data[tt_content][NEW5704b92a942d67.27539784][pi_flexform][data][optionsSheet][lDEF][slides][el][ID-d91e412bb2-idx1459927513523-form][slide][el][linkTarget][vDEF]_hr"] ) {
return window.opener.document.editform["data[tt_content][NEW5704b92a942d67.27539784][pi_flexform][data][optionsSheet][lDEF][slides][el][ID-d91e412bb2-idx1459927513523-form][slide][el][linkTarget][vDEF]_hr"];
} else {
close();
}
}Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.