File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ has method => (
21
21
22
22
has uid => (
23
23
is => ' rw' ,
24
- default => ' view ' ,
24
+ default => ' ' ,
25
25
);
26
26
27
27
has bare => (
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ use WebGUI::International;
7
7
use WebGUI::Pluggable;
8
8
use WebGUI::ProfileCategory;
9
9
use WebGUI::ProfileField;
10
+ use WebGUI::Shop::AddressBook;
10
11
use base qw/ WebGUI::Account/ ;
11
12
12
13
=head1 NAME
@@ -462,9 +463,7 @@ sub www_editSave {
462
463
if ($e = WebGUI::Error-> caught(' WebGUI::Error::ObjectNotFound' )) {
463
464
# Get home address only mappings to avoid creating addresses with just firstName, lastName, email
464
465
my %home_address_map = %{$address_mappings };
465
- foreach my $exclude ( qw{ firstName lastName email } ) {
466
- delete $home_address_map {$exclude };
467
- }
466
+ delete $home_address_map {qw/ firstName lastName email/ };
468
467
# Add the profile address for the user if there are homeAddress fields
469
468
if ( grep { $address -> {$_ } } values %home_address_map ) {
470
469
$address -> {label } = " Profile Address" ;
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ $andy = $session->user;
173
173
174
174
# Test that the address was saved to the profile
175
175
cmp_bag (
176
- [ map { $andy -> profileField ($_ ) } keys %profile_info ],
176
+ [ map { $andy -> get ($_ ) } keys %profile_info ],
177
177
[ values %profile_info ],
178
178
' Profile fields were updated'
179
179
);
You can’t perform that action at this time.
0 commit comments