Skip to content

Commit

Permalink
Update query params to work with a new version of ransack
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalcymerys committed Oct 29, 2023
1 parent 578c825 commit 7bc40ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/spree/backend/stock_transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7bc40ee

Please sign in to comment.