-- url of the page with the problem -- : localhost
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.10
-- Browser(s) name and version -- : Firefox 38.0.5
I noticed a strange flow when selecting a new default (billing) address.
Steps
1) User logs in (user has multiple addresses)
2) User goes to control panel for Addresses (URL is /user-addresses/address)
3) At the top there is a default address. User clicks on an existing address to make as default
4) The page refreshes but with none of the addresses selected as default
I investigated the Address class and saw that if you try to make an existing, published address that has already been used in an order, into a default address, the save function will unpublish it and clone the address.
What is the reasoning behind this logic? I want to know if it's something I should work around or have to change the core class file.