mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Move customer address lookup action to CustomersController
This commit is contained in:
@@ -47,7 +47,7 @@ angular.module("admin.standingOrders").controller "StandingOrderController", ($s
|
||||
|
||||
$scope.$watch "standingOrder.customer_id", (newValue, oldValue) ->
|
||||
return if !newValue? || newValue == oldValue
|
||||
$http.get("/admin/search/customer_addresses", params: { customer_id: newValue })
|
||||
$http.get("/admin/customers/#{newValue}/addresses")
|
||||
.success (response) =>
|
||||
delete response.bill_address.id
|
||||
delete response.ship_address.id
|
||||
|
||||
Reference in New Issue
Block a user