On line 253 of the i18n_field.module, you use the allowed_values to translate field values and overrides the field "#options" which automatically removes the "empty_value" (- None - and - Select at least -) from the options.
Shouldn't we pass the already build "#options" instead of the "allowed_values" in this case ?
It really breaks the normal behavior of the core "select" field.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fix-emtpty_value-for-list-fields-i18n-1366204.patch | 883 bytes | webflo |
Comments
Comment #1
webflo commentedComment #2
webflo commentedDoh! Here is a patch. Please review.
Comment #3
jose reyero commentedLooks good and seems to work. Committed. Thanks.
Comment #4
taran2lThis patch is fixing the problem, but does not fixing source of it. I think the i18n_field module skips couple field properties and that's way we do not have empty option in select box.
On field properties translation form I have the following notices (text field with select widget) :
Seems like description, default_value for field instance and label for field itself does not being collected properly.