Bug #23008
getSpriteIconForRecord() accepts row data which is not an array
Status: | Closed | Start date: | 2010-06-26 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Susanne Moog | % Done: | 0% |
|
Category: | - | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | 4.4 | Is Regression: | No | |
PHP Version: | 5.3 | Sprint Focus: | ||
Complexity: |
Description
t3lib_iconWorks::getSpriteIconForRecord() has as second parameter the data row for which the icon must be found.
If an integer is passed as argument this is not detected and various actions inside the function result in a wrong icon/overlay being returned.
By forcing the argument to be an array the results are correct.
(issue imported from #M14880)
Related issues
History
#1 Updated by Susanne Moog about 5 years ago
rev 8098, 8099
#2 Updated by Ernesto Baschny almost 2 years ago
- Target version deleted (
0) - Is Regression set to No
To add some info to this old issue:
The method getSpriteIconForRecord was introduced with 4.4.0.
The change of signature from this issue was introduced in 4.4.1 and 4.5.0. So only "4.4.0" (and some early alpha/beta releases) ever had this method with a "wrong signature".