Bug #33191

TypeConverter from string to array

Added by Pascal Walter over 1 year ago. Updated about 1 year ago.

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

0%

Category:Property
Target version:-
PHP Version: Complexity:
Has patch:No FLOW3 version affected:FLOW3 1.0.2
Votes: 0

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 (1.6 kB) Pascal Walter, 2012-01-14 11:47

History

Updated by Christian Mueller about 1 year 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