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

@ -88,7 +88,7 @@ sub www_address {
my $session = shift;
my $output = undef;
my $method = "www_". ( $session->form->get("method") || "view");
my $cart = WebGUI::Shop::AddressBook->newBySession($session);
my $cart = WebGUI::Shop::AddressBook->newByUserId($session);
if ($cart->can($method)) {
$output = $cart->$method();