Project

General

Profile

Actions

Bug #86576

closed

Be.LinkViewHelper can not be used without arguments

Added by Daniel Goerz about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2018-10-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

The newly introduced \TYPO3\CMS\Fluid\ViewHelpers\Be\LinkViewHelper can not be used without specifying the parameters. The following code will lead to a fatal error:

<f:be.link route="site_redirects">To the redirects module</f:be.link>

This is because the parameter argument is initialized with null if not passed to the ViewHelper but later on it is used as an array.

Solution: initialize the optional argument with the correct type.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #75161: Create uri and link viewhelper for Backend ModulesClosedRuud Silvrants2016-03-17

Actions
Actions #1

Updated by Daniel Goerz about 6 years ago

  • Related to Feature #75161: Create uri and link viewhelper for Backend Modules added
Actions #2

Updated by Gerrit Code Review about 6 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58579

Actions #3

Updated by Gerrit Code Review about 6 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58579

Actions #4

Updated by Gerrit Code Review about 6 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58579

Actions #5

Updated by Anonymous about 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF