mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-13 23:37:47 +00:00
Add new serializer to allow search for customer addresses
This commit is contained in:
committed by
Maikel Linke
parent
c71a5ec0df
commit
e0d46aa105
@@ -21,6 +21,7 @@ angular.module("admin.subscriptions").controller "DetailsController", ($scope, $
|
||||
|
||||
$scope.loadCustomer = ->
|
||||
params = { id: $scope.subscription.customer_id }
|
||||
params.ams_prefix = 'subscription' unless $scope.subscription.id
|
||||
$scope.customer = CustomerResource.get params, (response) ->
|
||||
for address in ['bill_address','ship_address']
|
||||
return unless response[address]
|
||||
|
||||
Reference in New Issue
Block a user