Bug #23008

getSpriteIconForRecord() accepts row data which is not an array

Added by Jigal van Hemert about 5 years ago. Updated almost 2 years ago.

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)

iconworks.diff Magnifier (644 Bytes) Administrator Admin, 2010-06-26 15:51


Related issues

related to Core - Bug #23306: DB browser is unusable Closed 2010-07-29
related to Core - Bug #22963: Sprite API: Still a wrong icon Closed 2010-06-22
related to Core - Bug #23455: PHP Catchable Fatal on table 'be_users' during EXPORT Closed 2010-08-26

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".

Also available in: Atom PDF