allow to create a new address

This commit is contained in:
Manuel Raynaud
2013-09-13 10:55:45 +02:00
parent 275b20ac77
commit 2d8656e45b
3 changed files with 283 additions and 24 deletions

View File

@@ -19,7 +19,7 @@ class Address extends BaseAddress {
{
AddressQuery::create()->filterByCustomerId($this->getCustomerId())
->update(array('isDefault' => '0'));
->update(array('IsDefault' => '0'));
$this->setIsDefault(1);
$this->save();