Project

General

Profile

Actions

Bug #21982

closed

buttons.formattext.restrictTo not evaluated correctly

Added by Jörg Wagner almost 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-01-18
Due date:
% Done:

0%

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

Description

The config parameter
page.RTE.default.buttons.formattext.restrictTo
is ignored. At least it is ignored as long as you don't also set the param "restrictToItems", as the code wrongly checks the presence of "restrictToItems" before evaluating "restrictTo". This is probably a copy&paste error.

The problem and the solution are nobrainers. Reading the code should be enough to understand what goes wrong.

Solution:
In file
/typo3/sysext/rtehtmlarea/extensions/InlineElements/class.tx_rtehtmlarea_inlineelements.php
around line 164 (version rtehtmlarea 1.7.12) the following change needs to be made:
OLD
// Restriction clause
if ($this->thisConfig['buttons.']['formattext.']['restrictToItems']) {
NEW
// Restriction clause
if ($this->thisConfig['buttons.']['formattext.']['restrictTo']) {

(issue imported from #M13282)


Files

Actions #1

Updated by Stanislas Rolland almost 15 years ago

Thanks for the correction.

Attached patch committed to SVN TYPO3core branch TYPO3_4-3 (revision 6917).

Actions #2

Updated by Stanislas Rolland over 14 years ago

The trunk version of this patch was bundled into #13580 and was therefore committed with trunk revision 6940.

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF