X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_pkg%2FAPI.pm;h=837cf40cc717f8bc9b48fc08420819800b71ae64;hb=8d0e8149e7b19ad8543ac6c8c663be63dbc34762;hp=7ef3f72467b88936ec38eb729a36b8c5f0c07d8b;hpb=e498e76c74a2e65e1c0b6a5514130ff71cee8a5b;p=freeside.git diff --git a/FS/FS/cust_pkg/API.pm b/FS/FS/cust_pkg/API.pm index 7ef3f7246..837cf40cc 100644 --- a/FS/FS/cust_pkg/API.pm +++ b/FS/FS/cust_pkg/API.pm @@ -2,8 +2,6 @@ package FS::cust_pkg::API; use strict; -use FS::cust_location::API; - sub API_getinfo { my $self = shift; @@ -25,7 +23,23 @@ sub API_change { # update location--accepts raw fields OR location my %location_hash; - foreach my $field (FS::cust_location::API::API_editable_fields()) { + foreach my $field ( qw( + locationname + address1 + address2 + city + county + state + zip + addr_clean + country + censustract + censusyear + location_type + location_number + location_kind + incorporated + ) ) { $location_hash{$field} = $opt{$field} if $opt{$field}; } return { 'error' => 'Cannot pass both locationnum and location fields' }