Skip to content

Commit

Permalink
Merge pull request #213 from PHOENIXCONTACT/bug/workplan-of-recipe-wa…
Browse files Browse the repository at this point in the history
…snt-changing

Using none obsolete workplanmodel instead
  • Loading branch information
Toxantron committed Aug 17, 2023
2 parents d6afbee + 0a1b47c commit 25ffa44
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ public IProductRecipe ConvertRecipeBack(RecipeModel recipe, IProductRecipe produ

// Only load workplan if it changed
var workplanRecipe = productRecipe as IWorkplanRecipe;
if (workplanRecipe != null && workplanRecipe.Workplan?.Id != recipe.WorkplanId)
workplanRecipe.Workplan = _productManagement.LoadWorkplan(recipe.WorkplanId);
if (workplanRecipe != null && workplanRecipe.Workplan?.Id != recipe.WorkplanModel.Id)
workplanRecipe.Workplan = _productManagement.LoadWorkplan(recipe.WorkplanModel.Id);

if (productRecipe.Product == null)
{
Expand Down

0 comments on commit 25ffa44

Please sign in to comment.