Issue Bug Closed

#21043itemsProcFunc for Radio-Buttons doesn't work correctly

David Bruchmann 09/12/09, 19:35 updated 11/19/13, 11:18

Description

itemsProcFunc for Radio-Buttons should work as the same function for select-fields. The difference is that for Radio-Buttons the same amount of dummy-arrays as estimated items has to be noted.

At first a working example for select:

$tempColumns = array (
FIELDNAME => array(
‘exclude’ => 1,
‘label’ => LABEL,
‘config’ => array (
‘type’ => ‘select’,
‘items’ => Array(
array(‘’, 0),
),
‘itemsProcFunc’ => CLASS->FUNCTION,
‘default’ => 0,
),
),
);

For Radio-Buttons the same Array has to be noted like that:

$tempColumns = array (
FIELDNAME => array(
‘exclude’ => 1,
‘label’ => LABEL,
‘config’ => array (
‘type’ => ‘radio’,
‘items’ => Array(
array(‘’, 0),
array(‘’, 1),
array(‘’, 2),
….
),
‘itemsProcFunc’ => CLASS->FUNCTION,
‘default’ => 0,
),
),
);

So the amount of estimated items has to be verified earlier which requires to include another function with the same requests two times.

(issue imported from #M11935)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.