Project

General

Profile

Actions

Bug #23652

closed

clickmenu broken if no records supplied

Added by Björn Pedersen about 14 years ago. Updated about 6 years ago.

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

0%

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

Description

triggered by: http://bugs.typo3.org/view.php?id=15862

Problem: clickmenu can call t3lib_iconWorks::getSpriteIconForRecord($table, $this->rec, ... )
with $this->rec not set.

Solution:
before getting icons, set $this->rec to an empty array if it was not set before.
It can't be set earlier, as an is_array check is used in the cm logig earlier.

(issue imported from #M15865)


Files

15865.patch (456 Bytes) 15865.patch Administrator Admin, 2010-09-30 09:11
Actions

Also available in: Atom PDF