app/assets/javascripts/spree/backend/stock_movement.js.coffee in spree_backend-2.4.4 vs app/assets/javascripts/spree/backend/stock_movement.js.coffee in spree_backend-2.4.5
- old
+ new
@@ -7,12 +7,13 @@
data: (term, page) ->
q:
variant_product_name_cont: term
per_page: 50
page: page
+ token: Spree.api_key
results: (data, page) ->
more = (page * 50) < data.count
return { results: data.stock_items, more: more }
formatResult: (stock_item) ->
variantTemplate({ variant: stock_item.variant })
formatSelection: (stock_item) ->
- "#{stock_item.variant.name} (#{stock_item.variant.options_text})"
\ No newline at end of file
+ "#{stock_item.variant.name} (#{stock_item.variant.options_text})"