Issue #24339:avoid editing firmed orders