Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
field system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Anonymous (not verified)
Created:
24 Aug 2009 at 13:20 UTC
Updated:
25 Mar 2017 at 20:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedThis should read:
When it's educated about language codes, the validate function does not (cannot?) use the language code when it uses form_set_value to translate the typed term names into term IDs.
and why didn't it add my patch? because it's too early for me to be working the queues. This patch is not a fix, so have a look but don't expect it to solve anything.
Comment #2
plachThe attached patch seems to fix the bug.
Comment #3
plachThe previous patch was incomplete, I spoke with bangpound and came up with the attached one.
There are a couple of fixes on the Field API and UI: in
field_default_formwe forgot to pass the$langcodeparameter tofield_get_default_value(this was not necessary to fix the bug); infield_ui_field_edit_form_submitthe patch fixes the default widget to take into account the language key, which is removed as it is not supposed to be there but on a higher level in the data structure.The patch fixes
taxonomy_autocomplete_elements_processwhich didn't take into account the case in which$element['#value'][$field_key]was defined, thus putting an array into$typed_string. It also fixestaxonomy_autocomplete_validatein order to properly handle the new language level introduced into the field form elements with translatable fields.Comment #4
Anonymous (not verified) commentedThis patch is RTBC. It also fixes #554650: taxonomy_autocomplete_validate error after adding new term field + autocomplete widget.
Comment #5
webchickOk, looks like this is just moving some stuff around after TF. I committed to HEAD.
Please file a critical task to write tests for this area of code so we do not break it again.
Comment #6
Anonymous (not verified) commented#558362: Add test coverage for Field API Number