app/assets/javascripts/spree/backend/user_picker.js in spree_backend-3.1.14 vs app/assets/javascripts/spree/backend/user_picker.js in spree_backend-3.2.0.rc1

- old
+ new

@@ -7,17 +7,18 @@ this.select2({ minimumInputLength: 1, multiple: true, initSelection: function (element, callback) { - $.get(Spree.routes.user_search, { - ids: element.val() + $.get(Spree.routes.users_api, { + ids: element.val(), + token: Spree.api_key }, function (data) { callback(data.users); }); }, ajax: { - url: Spree.routes.user_search, + url: Spree.routes.users_api, datatype: 'json', data: function (term) { return { q: term, token: Spree.api_key