customer bill/ship location refactoring, #940
[freeside.git] / FS / FS / ClientAPI / MasonComponent.pm
index 37cf7ef..534b48a 100644 (file)
@@ -36,7 +36,7 @@ my %session_callbacks = (
     my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } )
       or return "unknown custnum $custnum";
     my %args = @$argsref;
-    $args{object} = $cust_main;
+    $args{object} = $cust_main->bill_location;
     @$argsref = ( %args );
     return ''; #no error
   },