Feature: Revert one change of a field 

Description 

HR reverts one change of an employee record: the field gets the value it had before that change again, through the same operation as any other change of the record, with its checks, so an old value that is no longer valid, such as a department archived since, is refused with the reason of the operation. The revert is a change of its own whose reason names the reverted entry; every other field and later changes of other fields stay. When the field changed again after the entry, the revert asks to be forced. A changed department, position, location or contract time of an employment is reverted as a new employment period from today. Masked values, such as bank account numbers, and values the record derives are not reverted.

No setting switches the recording of the history off; the fields of the activity feed only decide what it shows first.

Impact 

The API offers revertAuditEntry for HR. The reason of a change set carries revertedEntryId. A migration adds the column reverted_entry_id to audit_change_reason.