app/assets/javascripts/spree/backend/checkouts/edit.js in spree_backend-2.2.9 vs app/assets/javascripts/spree/backend/checkouts/edit.js in spree_backend-2.2.10
- old
+ new
@@ -17,10 +17,13 @@
placeholder: Spree.translations.choose_a_customer,
ajax: {
url: Spree.routes.user_search,
datatype: 'json',
data: function(term, page) {
- return { q: term }
+ return {
+ q: term,
+ token: Spree.api_key
+ }
},
results: function(data, page) {
return { results: data }
}
},