Actions
Bug #17513
closedFunction addToAllTCAtypes ignores "specificTypesList" if there is just the Type 0 specified
Status:
Closed
Priority:
Should have
Assignee:
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
Updated by Jeff Segars about 17 years ago
I see this problem also and the suggested fix seems to work for me.
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