app/assets/javascripts/spree/backend/checkouts/edit.js in spree_backend-3.0.6.1 vs app/assets/javascripts/spree/backend/checkouts/edit.js in spree_backend-3.0.7
- old
+ new
@@ -23,11 +23,11 @@
q: term,
token: Spree.api_key
}
},
results: function(data, page) {
- return { results: data }
+ return { results: data.users }
}
},
dropdownCssClass: 'customer_search',
formatResult: formatCustomerResult,
formatSelection: function (customer) {
@@ -51,10 +51,10 @@
update_state('b', function () {
$('#order_bill_address_attributes_state_id').select2("val", billAddress.state_id);
});
});
}
- return customer.email;
+ return Select2.util.escapeMarkup(customer.email);
}
})
}
var order_use_billing_input = $('input#order_use_billing');