Issue Bug Closed

#21470Element-Browser page tree has HTML / JS Errors

Sven Juergens 08/11/10, 16:10 updated 10/02/18, 12:26

Description

have a look at the attached screenshot.

Steps to reproduce:
-add a DB Mount to an BE-User, press the red arrowbullet on a page (not on root)

Problem is using of the returnValue of t3lib_iconWorks::getSpriteIconForRecord(‘pages’, $mainPageRec), which is a complete span tag. This tag is insert in the onclick JavaScript Statement insertElement.

function insertElement(table, uid, type, filename,fp,filetype,imagefile,action, close) { //
var performAction = true;
// Call performing function and finish this action:
if (performAction) {
addElement(filename,table+”_”+uid,fp,close);
}
return false;
}

in this case the imagefile is never used, so don’t give over the imagefile to the javascript.

(issue imported from #M15428)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.