issue #21491: Fix orm.

issue #21166: Fix can not create a to do relation for an incident.