Fix some comment typos in t/Shop/AddressBook
Add tests for WebGUI::Shop::Address Fix bugs in the upgrade script (missing city entry) and the Address new method.
This commit is contained in:
parent
3da2edb1eb
commit
4b17be6e54
4 changed files with 121 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ sub create {
|
|||
unless (defined $addressData && ref $addressData eq "HASH") {
|
||||
WebGUI::Error::InvalidParam->throw(param=>$addressData, error=>"Need a hash reference.");
|
||||
}
|
||||
my $id = $book->session->db->setRow("addressBook","addressBookId", {addressId=>"new"});
|
||||
my $id = $book->session->db->setRow("address","addressId", {addressId=>"new", addressBookId=>$book->getId});
|
||||
my $address = $class->new($book, $id);
|
||||
$address->update($addressData);
|
||||
return $address;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue