Project

General

Profile

Actions

Bug #17513

closed

Function addToAllTCAtypes ignores "specificTypesList" if there is just the Type 0 specified

Added by Jonas Felix over 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Extension Manager
Target version:
-
Start date:
2007-08-10
Due date:
% Done:

0%

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

Description

In the file class.t3lib_extmgm.php the function addToAllTCAtypes ignores the parameter "specificTypesList" if there is just the Type 0 specified.

You shuld set $specificTypesList to false by default and check if it is false and not if it's empty:

line 251:
function addToAllTCAtypes($table,$str,$specificTypesList=false,$position='') {

line 260:
if ($specificTypesList !== false || t3lib_div::inList($specificTypesList,$k)) {

(issue imported from #M6114)


Files

class.t3lib_extmgm.php.diff (603 Bytes) class.t3lib_extmgm.php.diff Administrator Admin, 2007-12-04 22:30
Actions #1

Updated by Jeff Segars about 17 years ago

I see this problem also and the suggested fix seems to work for me.

Actions #2

Updated by Jeff Segars almost 17 years ago

Attached a patch to fix this. Instead of specificTypesList == false, we just check for the current default value of ''.

Actions #3

Updated by Jeff Segars almost 17 years ago

Fixed in trunk and 4.1 branch.

Actions

Also available in: Atom PDF