Project

General

Profile

Actions

Feature #25079

closed

suggest wizard won't work when using frontend editing.

Added by Jan Philipp Timme about 13 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-02-18
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #34385: Bug in t3lib/jsfunc.tceforms_suggest.js -> Feediting tt_news no titleClosed2012-02-28

Actions
Actions

Also available in: Atom PDF