Project

General

Profile

Actions

Bug #89729

closed

Exception when adding LinkButtons to a SplitButton

Added by Johannes Kasberger over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2019-11-21
Due date:
% Done:

100%

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

Description

The addItem method of the SplitButton class expects items of the type AbstractButton. In the render method it calls getName and getValue that are only defined for InputButtons but not LinkButtons resulting in an exception.

I don't see a reason why LinkButtons should not be supported for SplitButtons so I'd suggest that the fix is to add the rendering code for LinkButtons (or simply use the render method of the children).

Actions

Also available in: Atom PDF