Bug #33191

TypeConverter from string to array

Added by Pascal Walter almost 10 years ago. Updated over 9 years ago.

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

0%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

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.


Files

ArrayConverter.php (1.62 KB) ArrayConverter.php Pascal Walter, 2012-01-14 11:47

Also available in: Atom PDF