Feature #25079
closedsuggest wizard won't work when using frontend editing.
100%
Description
The suggest wizard won't work when the form containing it was opened out of the frontend editing mode, as it uses an undefined javascript variable to build the request url for the ajax.php, leading to a 404 error, because the request url is "undefinedajax.php".
After some debugging, i found out that the undefined variable is called "top.TS.PATH_typo3" and that the issue can be fixed by adding a single line to the inline javascript in alt_doc.php. (see additional information for the snippet)
The suggest wizard works in the "full" backend, as top.TS.PATH_typo3 is defined there.
<<<<< snip [~ line 463 in typo3/alt_doc.php, function init() ]
// Object: TS:
// passwordDummy and decimalSign are used by tbe_editor.js and have to be declared here as
// TS object overwrites the object declared in tbe_editor.js
function typoSetup () { //
this.uniqueID = "";
this.passwordDummy = "********";
this.PATH_typo3 = ""; //##### ADDING THIS LINE FIXES THE ISSUE ####
this.decimalSign = ".";
}
<<<<< snip
(issue imported from #M17643)