[TYPO3-core] RFC # 00015865 clickmenu breaks if no record set.

Bjoern Pedersen bjoern.pedersen at frm2.tum.de
Thu Sep 30 09:21:23 CEST 2010


Am 30.09.2010 09:13, schrieb Bjoern Pedersen:
> Hi,
> 
> This is a SVN patch request.
> 
> Type: Bugfix
> 
> BT reference: http://bugs.typo3.org/view.php?id=15865
> Branches: trunk, 4.4
> 
> 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.
> 
> Steps To Reproduce:
> 
>  try the cm in the ttnews news admin module.
> 
Missed the title


More information about the TYPO3-team-core mailing list