Bug #33191

TypeConverter from string to array

Added by Pascal Walter over 3 years ago. Updated over 3 years ago.

Status:Rejected Start date:2012-01-14
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:Property
Target version:-
PHP Version: Complexity:
Has patch:No Affected Flow version:FLOW3 1.0.2

Description

I discovered this bug by using a <f:form.select name="items" /> in a form. In case the user doesn't select anything, the array items is empty. But the normal Property TypeConverter from FLOW3 just convertes arrays to arrays. So I forked it and supported string to array conversion, which is pretty easy. I attached my customized TypeConverter how fits me needs. But I dont think its best practice or best coding style.

Maybe you guys come up with a better solution for that.

ArrayConverter.php Magnifier (1.6 kB) Pascal Walter, 2012-01-14 11:47

History

#1 Updated by Christian Müller over 3 years ago

  • Status changed from New to Rejected

There are other ways to work with your use case. If we create a string to array converter it should actually try to convert something, like serialized arrays.

Also available in: Atom PDF