app/assets/javascripts/spree/backend/stock_transfer.js in spree_backend-4.6.2 vs app/assets/javascripts/spree/backend/stock_transfer.js in spree_backend-4.7.0
- old
+ new
@@ -126,10 +126,10 @@
return this.build_select(Spree.url(Spree.routes.variants_api_v2), 'product_name_or_sku_cont')
}
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) {
// eslint-disable-next-line no-extra-boolean-cast
if (!!result.options_text) {