[TYPO3-commerce] RFC: #7476: bug: hook processItemArrayForBrowseableTreeDefault must have return value

Ralf Merz ralf at ralf-merz.de
Tue Apr 27 11:01:11 CEST 2010


This is an SVN patch request.

Type: Bug

Bugtracker references:
http://forge.typo3.org/issues/show/7476

Branches:
commerce trunk Revision: 32595

Problem:
The hook processItemArrayForBrowseableTreeDefault in 
treelib/class.tx_commerce_treelib_tceforms.php has no return value, but 
should have one, so that the itemArray[] can be filled by this hook.

Solution:
The function call $hookObj->processDefault($itemFormElValue, $table, 
$uid) returns a string that is written to the $itemArray[].

Notes:
The rendering of the Category tree and the selected categories is 
needed in commerce_coupons extension. Coupons can have related 
categories. The hook is implemented so we can store the related 
categories (in coupons) as comma-separated list without prefix.
See my description on forge.

Looking forward to your reviews.
Regards
Ralf Merz

-- 
Ralf Merz
Dipl.-Ing. (FH)
merzilla
TYPO3 development, hosting, service



More information about the TYPO3-project-commerce mailing list