@@ -1,5 +1,5 @@ diff --git a/conditional_fields.module b/conditional_fields.module -index 34503a6..ee412ee 100644 +index 34503a6..72e93d6 100644 --- a/conditional_fields.module +++ b/conditional_fields.module @@ -245,6 +245,9 @@ function conditional_fields_element_after_build($element, &$form_state) { @@ -481,20 +481,21 @@ index 34503a6..ee412ee 100644 // We have the parents of the field, but depending on the entity type and // the widget type, they may include additional elements that are actually -@@ -1986,3 +2002,18 @@ function conditional_fields_features_api() { +@@ -1986,3 +2002,19 @@ function conditional_fields_features_api() { ), ); } + +/** -+ * Returns a field's immediate parent bunlde. ++ * Returns a field's immediate parent bundle. + * + * @param array $field A field structure extracted from a form array + * @return string|bool The parent's bundle or FALSE if not found + */ +function _conditional_fields_field_parent_bundle($field) { ++ $languages = array_keys(language_list()); + foreach (array_reverse($field[0]['#field_parents']) as $parent) { -+ if (!is_numeric($parent) && $parent != LANGUAGE_NONE) { ++ if (!is_numeric($parent) && $parent != LANGUAGE_NONE && !in_array($parent, $languages)) { + return $parent; + } + }