fix editing of events that have reasons, from #31702