I have one controller and it has all functions that are required for CRUD operations. So in actionUpdate(), I have a special requirement.
There are 8-10 fields in the form for a model. Now what I want is, if any field value is changed or updated then I need to send an email to a particular email address. If all values are same as previous one then mail should not be send. For sending mail, I have a good code and it is working nice.
My question is how to check whether atleast a single field is updated or not??
If USER model has 5 fields like : usr_id,usr_name,usr_add1,usr_zip,usr_mobile
Now while updating any record of that user, if usr_name is changed then also email should be sent. Atleast value of one field should be changed for sending an email.