Fix bug with CreateOrUpdateAddress action

modifié:         core/lib/Thelia/Action/Address.php
This commit is contained in:
Benjamin Perche
2014-06-20 11:55:13 +02:00
parent cf66ad2dc7
commit 1f26ff997d

View File

@@ -79,7 +79,7 @@ class Address extends BaseAction implements EventSubscriberInterface
->save() ->save()
; ;
if ($event->getIsDefault()) { if ($event->getIsDefault() && !$addressModel->getIsDefault()) {
$addressModel->makeItDefault(); $addressModel->makeItDefault();
} }