diff --git a/core/lib/Thelia/Model/Address.php b/core/lib/Thelia/Model/Address.php index 413797eeb..5ce697e8f 100755 --- a/core/lib/Thelia/Model/Address.php +++ b/core/lib/Thelia/Model/Address.php @@ -71,4 +71,14 @@ class Address extends BaseAddress { $this->dispatchEvent(TheliaEvents::AFTER_DELETEADDRESS, new AddressEvent($this)); } + public function preSave() + { + $valid = true; + if($this->getIsDefault()) { + $valid = false; + } + + return $valid; + } + }