diff --git a/module/execution/model.php b/module/execution/model.php index 4b415c888b..1221924092 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -1762,8 +1762,8 @@ class executionModel extends model $branch = isset($branches[$i]) ? $branches[$i] : 0; if(isset($oldProducts[$productID][$branch])) { - $oldProducts = $oldProducts[$productID][$branch]; - $oldPlan = $oldProducts->plan; + $oldProduct = $oldProducts[$productID][$branch]; + $oldPlan = $oldProduct->plan; } $data = new stdclass();