[TYPO3-dev] itemsProcFunc in checkboxes bug?

Sven Dörndorfer sven at doerndorfer.de
Thu Jul 20 08:41:17 CEST 2006


Hi Franz,

Thanks for your answer, but it doesn't work yet.

On 2006-07-18 19:06:04 +0200, Franz Holzinger <franz at fholzinger.com> said:
> 
> In your case $maxV will be 2.

You are right, but if I fill the $items array with 3 items for example, 
then $maxV is still 2.
When I have selected all 3 checkboxes and save it, then there should be 
a value of 7 (bitmask) in the db, but with $maxV there is only 2 saved 
in the db.

If I debug checkValue_check() then $value is 7, but $maxV is 2 and $itemC is 1.

I use the itemsProcFunc:

function main(&$params,&$pObj) {
	
	$res = $GLOBALS['TYPO3_DB'] -> exec_SELECTquery('uid,title', 
'tx_myExt_modules', 'deleted=0 AND hidden=0');
	while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
		$params['items'][] = Array($row['title'], $row['uid']);
	}
}

with 3 records in table tx_myExt_modules.

Sven.





More information about the TYPO3-dev mailing list