Added logic to reverse changes in the case of a report edit