Skip to Content
0
Former Member
May 21, 2015 at 04:40 PM

Dirty Attributes in Model value history

667 Views

I have an interceptor for variant product. I have an attribute of date type in variant product. I am using the condition context.isModified(variantProductModel, date attribute) to peform some logic when the date attribute is modified. When I am running the impex to update some other attributes in variant product, the condition isModified is becoming true, but I am not updating the date attribute. This is happening only when the date attribute is null. If have value in attribute, then there is no problem. In model value history this date attribute is in DirtyAttribute list along with the attribute I am updating. So can anyone help me understanding why this is happening? What attributes will come under dirty attributes?

Thanks in advance, Praveen