Project

General

Profile

Actions

Bug #81983

closed

JStop() in FormResultCompiler handles Stylesheets but not JavaScript

Added by David Bruchmann over 6 years ago. Updated over 6 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

Also available in: Atom PDF