OH-323 Fixed old parent indexing problem.

- When parent changes old end date is set for old relation.