mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix product.meta_keywords not searchable
This commit is contained in:
@@ -53,7 +53,7 @@ Darkswarm.controller "ProductsCtrl", ($scope, $filter, $rootScope, Products, Ord
|
||||
id: $scope.order_cycle.order_cycle_id,
|
||||
page: $scope.page,
|
||||
per_page: $scope.per_page,
|
||||
'q[name_or_supplier_name_cont]': $scope.query,
|
||||
'q[name_or_meta_keywords_or_supplier_name_cont]': $scope.query,
|
||||
'q[properites_in_any][]': $scope.activeProperties,
|
||||
'q[primary_taxon_id_in_any][]': $scope.activeTaxons
|
||||
}
|
||||
@@ -64,7 +64,7 @@ Darkswarm.controller "ProductsCtrl", ($scope, $filter, $rootScope, Products, Ord
|
||||
id: $scope.order_cycle.order_cycle_id,
|
||||
page: $scope.page + 1,
|
||||
per_page: $scope.per_page,
|
||||
'q[name_or_supplier_name_cont]': $scope.query,
|
||||
'q[name_or_meta_keywords_or_supplier_name_cont]': $scope.query,
|
||||
'q[properites_in_any][]': $scope.activeProperties,
|
||||
'q[primary_taxon_id_in_any][]': $scope.activeTaxons
|
||||
}
|
||||
|
||||
@@ -214,10 +214,6 @@ feature "As a consumer I want to shop with a distributor", js: true do
|
||||
fill_in "search", with: "Meer" # For product named "Meercats"
|
||||
expect(page).to have_content product2.name
|
||||
expect(page).not_to have_content product.name
|
||||
|
||||
fill_in "search", with: "Dome" # For product with meta_keywords "Domestic"
|
||||
expect(page).to have_content product.name
|
||||
expect(page).not_to have_content product2.name
|
||||
end
|
||||
|
||||
it "returns search results for products where the search term matches one of the product's variant names" do
|
||||
|
||||
Reference in New Issue
Block a user