I'm working on an observer of the customer_address_save_before
event. On customer address saving, i've to check if there's changes before doing some actions.
I did something similar for the customer/customer
model with some natives methods such as hasDataChanges()
, dataHasChangedFor($key)
and getOrigData()
from the Varien_Object
class.
However, when i tried to do it for the customer/address
model, i figured out that the _origData
property is null. This happens only when the customer address is updated in the front-end. When i update the customer address in the back-end, i do have the correct _origData
.
Do you know why does this happen and how to fix or bypass this ?