summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-09-30 04:30:21 +0000
committerivan <ivan>2011-09-30 04:30:21 +0000
commit9dc9e640dc06b719f2dc2628ea0b03cce1063de1 (patch)
tree8ce775bcd0e52e4db3f99ff2b97bde30b7319457
parent55f6e0c65a869584b866c72ed34e79a317490c48 (diff)
fix customer_info name, RT#13656
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index 7e131f9d0..9a1cc50f3 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -387,8 +387,8 @@ sub customer_info {
( $session->{'pkgnum'} ? 1 : 0 ), #nobalance
);
- $return{name} = $cust_main->name;
- $return{ship_name} = $cust_main->ship_name;
+ $return{name} = $cust_main->first. ' '. $cust_main->get('last');
+ $return{ship_name} = $cust_main->ship_first. ' '. $cust_main->get('ship_last');
for (@cust_main_editable_fields) {
$return{$_} = $cust_main->get($_);
@@ -477,8 +477,8 @@ sub customer_info_short {
1, ##nobalance
);
- $return{name} = $cust_main->name;
- $return{ship_name} = $cust_main->ship_name;
+ $return{name} = $cust_main->first. ' '. $cust_main->get('last');
+ $return{ship_name} = $cust_main->ship_first. ' '. $cust_main->get('ship_last');
$return{payby} = $cust_main->payby;