Commit ed0b0804 authored by ordermind's avatar ordermind Committed by Ra Mänd
Browse files

Issue #2570663 by ordermind, Chris Matthews: Support i18n_taxonomy in taxonomy...

Issue #2570663 by ordermind, Chris Matthews: Support i18n_taxonomy in taxonomy field reference table field for products
parent 15fb332a
Loading
Loading
Loading
Loading
+2 −2
Changes for includes/commerce_product.inline_entity_form.inc: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -81,8 +81,8 @@ class CommerceProductInlineEntityFormController extends EntityInlineEntityFormCo
        foreach ($attributes as $field_name => $attribute) {
          $field_type = field_info_field_types($attribute['field']['type']);
          // Override the default formatter for taxonomy_term_reference.
          if ($field_type['default_formatter'] == 'taxonomy_term_reference_link') {
            $field_type['default_formatter'] = 'taxonomy_term_reference_plain';
          if($attribute['field']['type'] === 'taxonomy_term_reference') {
            $field_type['default_formatter'] = str_replace('taxonomy_term_reference_link', 'taxonomy_term_reference_plain', $field_type['default_formatter']);
          }

          $weight = -3;