Address Books cannot be owned by Visitor any longer. Changed newBySession to newByUserId.

This commit is contained in:
Colin Kuskie 2010-04-22 12:02:54 -07:00
parent aa41440181
commit d67998888c
5 changed files with 52 additions and 12 deletions

View file

@ -404,7 +404,7 @@ sub view {
;
# instanciate address
my $address = WebGUI::Shop::AddressBook->newBySession($self->session)->getAddress($form->get("addressId")) if ($form->get("addressId"));
my $address = WebGUI::Shop::AddressBook->newByUserId($self->session)->getAddress($form->get("addressId")) if ($form->get("addressId"));
# build the form that the user needs to fill out with badge holder information
$vars{formHeader} = WebGUI::Form::formHeader($session, {action => $self->getUrl})