Project

General

Profile

Actions

Bug #81983

closed

JStop() in FormResultCompiler handles Stylesheets but not JavaScript

Added by David Bruchmann over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-07-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The function is remarkable wrong and noted like this:

    /**
     * JavaScript code added BEFORE the form is drawn:
     *
     * @return string A <script></script> section with JavaScript.
     */
    public function JStop()
    {
        $stylesheetHtml = [];
        foreach ($this->stylesheetFiles as $stylesheetFile) {
            $stylesheetHtml[] = '<link rel="stylesheet" type="text/css" href="' . $stylesheetFile . '" />';
        }
        return implode(LF, $stylesheetHtml);
    }

Actions #1

Updated by David Bruchmann over 7 years ago

In Version 8 the function looks like this:

    /**
     * JavaScript code added BEFORE the form is drawn:
     *
     * @return string
     * @deprecated since TYPO3 v8, will be removed in TYPO3 v9
     */
    public function JStop()
    {
        GeneralUtility::logDeprecatedFunction();
        return $this->addCssFiles();
    }
Actions #2

Updated by Georg Ringer over 7 years ago

  • Status changed from New to Closed

as you found out the method is deprecated and removed in current master already. use addCssFiles()

Actions

Also available in: Atom PDF