From 1f26ff997d48796ba3832a05606a43a15fcb062e Mon Sep 17 00:00:00 2001 From: Benjamin Perche Date: Fri, 20 Jun 2014 11:55:13 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20bug=20with=20CreateOrUpdateAddress=20acti?= =?UTF-8?q?on=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20core/lib/Thelia?= =?UTF-8?q?/Action/Address.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/lib/Thelia/Action/Address.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Thelia/Action/Address.php b/core/lib/Thelia/Action/Address.php index e6e9b9f65..17ae95cc8 100644 --- a/core/lib/Thelia/Action/Address.php +++ b/core/lib/Thelia/Action/Address.php @@ -79,7 +79,7 @@ class Address extends BaseAction implements EventSubscriberInterface ->save() ; - if ($event->getIsDefault()) { + if ($event->getIsDefault() && !$addressModel->getIsDefault()) { $addressModel->makeItDefault(); }