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

Ralf Merz rfm at lightwerk.com
Mon May 10 09:39:30 CEST 2010


Hi,

I just want to ask if someone could already have had a look at this?

Thanks and greets
Ralf Merz
(merzilla)

Ralf Merz schrieb:
> 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
> 


More information about the TYPO3-team-commerce mailing list