CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #7476

Hook processItemArrayForBrowseableTreeDefault has no return value, but must have

Added by Ralf Merz about 3 years ago. Updated about 1 year ago.

Status:Resolved Start date:2010-04-27
Priority:Must have Due date:
Assignee:- % Done:

0%

Category:- Spent time: -
Target version:-
Votes: 0

Description

Hi,

the hook processItemArrayForBrowseableTreeDefault in treelib/class.tx_commerce_treelib_tceforms.php:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/treelib/class.tx_commerce_treelib_tceforms.php']['processItemArrayForBrowseableTreeDefault']
has no return value but should have one.

$hookObj->processDefault($itemFormElValue, $table, $uid);
should be
$itemArray[] = $hookObj->processDefault($itemFormElValue, $table, $uid);

This is needed so that the selected category titles in a category selection are rendered. In my case, I´ve needed the hook to show the selected categories in commerce_coupons.

In tca.php of coupons, one could say "'substituteRealValues' => true," but so the related categories are saved with prefix in the comma separated list like:
tx_commerce_categories_8,tx_commerce_categories_17

But I want them to be saved as: 8,17
That´s why I set 'substituteRealValues' => false,
And again that´s why I need the hook.

Attached I have a diff file which changes this line.

Greets
Ralf Merz
(merzilla)

treelib_tceforms.diff - gives hook a return value (524 Bytes) Ralf Merz, 2010-04-27 10:51

Associated revisions

Revision 63120
Added by Ingo Schmitt about 1 year ago

  • Fixed issue #7476: Hook processItemArrayForBrowseableTreeDefault has no return value, but must have. Thanks to Ralf Merz

Revision 63120
Added by Ingo Schmitt about 1 year ago

  • Fixed issue #7476: Hook processItemArrayForBrowseableTreeDefault has no return value, but must have. Thanks to Ralf Merz

History

Updated by Ingo Schmitt about 1 year ago

  • Status changed from New to Resolved

Also available in: Atom PDF