OPAL-2682 Make sure the entity type corresponding to the reference table selected is correctly set and its edition is disabled.