[TYPO3-project-formidable] Renderlet CHECKBOX bug?

Manuel Rego Casasnovas mrego at igalia.com
Tue May 22 15:22:15 CEST 2007


Hi.

I've more information.

I think that this problem is related with the functions _flatten and
_unflatten in the class tx_rdtcheckbox.

When the function _flatten are called the param passed is a string with
the value 'Array', and it must be a real array and not a string.

Bye,
  Rego

--
http://www.igalia.com


Manuel Rego Casasnovas escribió:
> Hi everyone!
> 
> I'm using the CHECKBOX renderlet, I want to store the information from
> this renderlet in a database table but this doesn't work.
> The SQL query is the next:
> UPDATE tx_myext_table
> SET
> test='Array'               # Here is the problem
> WHERE
> uid = '8'
> 
> I think that the correct SQL query would have to be (if the user select
> test0, test2 and test3):
> UPDATE tx_myext_table
> SET
> test='0,2,3'
> WHERE
> uid = '8'
> 
> The renderlet code is:
>     <renderlet:CHECKBOX name="test">
>       <data>
>         <items>
>           <item caption="test0" value="0" />
>           <item caption="test1" value="1" />
>           <item caption="test2" value="2" />
>           <item caption="test3" value="3" />
>           <item caption="test4" value="4" />
>           <item caption="test5" value="5" />
>         </items>
>       </data>
>     </renderlet:CHECKBOX>
> 
> I don't know if this is a bug or not.
> Somebody knows any solution for this?
> 
> Best regards,
>    Rego
> 


More information about the TYPO3-project-formidable mailing list