thelia/thelia — pull request #492 by lovenunu (2014-06-20 12:40:33+00:00)
Title: Fix a bug with AddressAction

Here's the problem: when you try to update an address of a customer, and set it to default ( by using the $isDefault argument of the constructor of \Thelia\Action\Address ), if this address is the customer's default, it will set is_default = 0 in the address' row, and the customer will no longer have any default address.

My solution is to check that the address is not the customer's default address before doing $addressModel->makeItDefault();