summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvasike2013-07-05 09:51:55 (GMT)
committer Jonathan Sacksick2013-07-08 16:04:28 (GMT)
commit38c14d0a95b262fe962fde28677c5c3f36f084ad (patch)
treeb30fc0f6d80d82bf5280e7c32b066a634137849b
parent30bbcae837e6f78bcf8e8d41ec158e0f5d0fcf0c (diff)
Issue #2010328 by vasike: Fix term id instead of term name in the breadcrumb.
Change-Id: I6f7ec26e00cf7c45d36f01dbff258d2c876c4601 Reviewed-on: https://code.drupalcommerce.org/717 Tested-by: JenkinsCG <jenkins@drupalcommerce.org> Reviewed-by: Jonathan Sacksick <jonathan.sacksick@gmail.com>
-rw-r--r--modules/commerce_kickstart/commerce_kickstart_taxonomy/includes/views/commerce_kickstart_taxonomy.views_default.inc21
1 files changed, 13 insertions, 8 deletions
diff --git a/modules/commerce_kickstart/commerce_kickstart_taxonomy/includes/views/commerce_kickstart_taxonomy.views_default.inc b/modules/commerce_kickstart/commerce_kickstart_taxonomy/includes/views/commerce_kickstart_taxonomy.views_default.inc
index 93d1550..d6fde2f 100644
--- a/modules/commerce_kickstart/commerce_kickstart_taxonomy/includes/views/commerce_kickstart_taxonomy.views_default.inc
+++ b/modules/commerce_kickstart/commerce_kickstart_taxonomy/includes/views/commerce_kickstart_taxonomy.views_default.inc
@@ -220,20 +220,25 @@ function commerce_kickstart_taxonomy_views_default_views_alter(&$views) {
$page_handler->display->display_options['fields']['name']['replace_spaces'] = TRUE;
// Replace the contextual filter.
unset($default_handler->display->display_options['arguments']['field_collection']);
- $default_handler->display->display_options['arguments']['field_product_category_1']['id'] = 'field_product_category_1';
- $default_handler->display->display_options['arguments']['field_product_category_1']['field'] = 'field_product_category';
- $default_handler->display->display_options['arguments']['field_product_category_1']['table'] = 'search_api_index_product_display';
- $default_handler->display->display_options['arguments']['field_product_category_1']['default_action'] = 'not found';
- $default_handler->display->display_options['arguments']['field_product_category_1']['default_argument_type'] = 'fixed';
- $default_handler->display->display_options['arguments']['field_product_category_1']['summary']['format'] = 'default_summary';
- $default_handler->display->display_options['arguments']['field_product_category_1']['summary_options']['grouping'] = array(
+ $default_handler->display->display_options['arguments']['field_product_category']['id'] = 'field_product_category';
+ $default_handler->display->display_options['arguments']['field_product_category']['field'] = 'field_product_category';
+ $default_handler->display->display_options['arguments']['field_product_category']['table'] = 'search_api_index_product_display';
+ $default_handler->display->display_options['arguments']['field_product_category']['default_action'] = 'not found';
+ $default_handler->display->display_options['arguments']['field_product_category']['default_argument_type'] = 'fixed';
+ $default_handler->display->display_options['arguments']['field_product_category']['summary']['format'] = 'default_summary';
+ $default_handler->display->display_options['arguments']['field_product_category']['summary_options']['grouping'] = array(
0 => array(
'field' => 'name',
'rendered' => 1,
'rendered_strip' => 0,
),
);
- $default_handler->display->display_options['arguments']['field_product_category_1']['break_phrase'] = 0;
+ $default_handler->display->display_options['arguments']['field_product_category']['specify_validation'] = TRUE;
+ $default_handler->display->display_options['arguments']['field_product_category']['validate']['type'] = 'taxonomy_term';
+ $default_handler->display->display_options['arguments']['field_product_category']['validate_options']['vocabularies'] = array(
+ 'product_category' => 'product_category',
+ );
+ $default_handler->display->display_options['arguments']['field_product_category']['break_phrase'] = 0;
// Update the path.
$page_handler->display->display_options['path'] = 'product_category/%';
}