Bug #7476
Hook processItemArrayForBrowseableTreeDefault has no return value, but must have
| 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)
Associated revisions
- Fixed issue #7476: Hook processItemArrayForBrowseableTreeDefault has no return value, but must have. Thanks to Ralf Merz
- 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