I've a list with OOB approval workflow. on top of that, i created a workflow to send an email depending on the status, when the item is changed- if approval status="Approved", send one mail, else if approval status="Rejected", send another mail. But even if I approve the entries, mails are not fired. On checking, I found that though the entries are showing as saved with "approved" status, they are suddenly modified to "Pending" status. I can see that the item is modified on behalf of workflow. (I did another check- set the condition in workflow as send mail if status="pending". then the mails are sent). this means even though the item is approved or rejected for a moment, it's again changed back to "Pending" somehow. How can I change this behaviour?
I don't want to use a custom field to denote the approval status instead of the OOB workflow, as in that case I'll not be able to use the "approve" permissions, or I cannot hide this custom field from new entry forms.