Issue Bug Closed

#19158Wrong alert text in Constant editor

Dmitry Dulepov 07/28/08, 10:12 updated 08/06/10, 13:21

Description

Try to edit template reference in tt_news. It will ask you this: “This will make a copy of the current file, ‘%s’. Do you really want that?”. This looks like a question but in fact it is not. The box has only “OK” button (see screenshot), so the whole thing is confusing.

This is not tt_news bug! Problem is in t3lib/class.t3lib_tsparser_ext.php, like 1314:

if ($copyFile && @is_file($copyFile)) {
    $p_field.='<img src="clear.gif" width="20" height="1" alt="" /><img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],'gfx/clip_copy.gif','width="12" height="12"').' border="0" alt="" /><input type="checkbox" name="_copyResource['.$params['name'].']" value="'.htmlspecialchars($copyFile).'" onClick="uFormUrl('.$aname.');if (this.checked) {alert(unescape(\''.rawurlencode(sprintf("This will make a copy of the current file, '%s'. Do you really want that?",$params['value'])).'\'));}" />';
}

(issue imported from #M9060)

Reviews 0

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