From 7bc40ee56c078277d22a2ead69633573607c36a4 Mon Sep 17 00:00:00 2001 From: Rafal Cymerys Date: Sun, 29 Oct 2023 13:18:30 +0100 Subject: [PATCH] Update query params to work with a new version of ransack --- app/assets/javascripts/spree/backend/stock_transfer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/spree/backend/stock_transfer.js b/app/assets/javascripts/spree/backend/stock_transfer.js index 71380d10e2..ff8b96e416 100644 --- a/app/assets/javascripts/spree/backend/stock_transfer.js +++ b/app/assets/javascripts/spree/backend/stock_transfer.js @@ -128,7 +128,7 @@ document.addEventListener("spree:load", function() { TransferVariants.prototype._search_transfer_stock_items = function () { var stockLocationId = $('#transfer_source_location_id').val() - return this.build_select(Spree.routes.stock_items_api_v2 + '?filter[stock_location_id_eq]=' + stockLocationId + '&include=variant', 'variant_product_name_or_variant_sku_cont') + return this.build_select(Spree.routes.stock_items_api_v2 + '?filter[stock_location_id_eq]=' + stockLocationId + '&include=variant', 'variants_product_name_or_variants_sku_cont') } TransferVariants.prototype.format_variant_result = function (result) {