If a production order to be created contained multiple lines and one was deleted, the production order was not saved

If in the Production List a production order to be created contained multiple lines and one was deleted, the production order to be created was not saved.