diff --git a/marlo-web/src/main/java/org/cgiar/ccafs/marlo/action/projects/DeliverableAction.java b/marlo-web/src/main/java/org/cgiar/ccafs/marlo/action/projects/DeliverableAction.java index bcf1dd2319..080a40d8ec 100644 --- a/marlo-web/src/main/java/org/cgiar/ccafs/marlo/action/projects/DeliverableAction.java +++ b/marlo-web/src/main/java/org/cgiar/ccafs/marlo/action/projects/DeliverableAction.java @@ -3069,16 +3069,14 @@ private void saveDeliverableActivities(Deliverable deliverablePrew) { for (DeliverableActivity deliverableActivity : deliverable.getActivities()) { if (deliverableActivity.getId() != null && deliverableActivity.getId() != -1) { - deliverableActivity = deliverableActivityManager.getDeliverableActivityById(deliverableActivity.getId()); - } - deliverableActivity.setDeliverable(deliverableManager.getDeliverableById(deliverableID)); - deliverableActivity.setPhase(this.getActualPhase()); - deliverableActivityManager.saveDeliverableActivity(deliverableActivity); - // This add projectFocus to generate correct auditlog. - deliverablePrew.getDeliverableActivities().add(deliverableActivity); + deliverableActivity.setDeliverable(deliverableManager.getDeliverableById(deliverableID)); + deliverableActivity.setPhase(this.getActualPhase()); + deliverableActivityManager.saveDeliverableActivity(deliverableActivity); + // This add projectFocus to generate correct auditlog. + deliverablePrew.getDeliverableActivities().add(deliverableActivity); + } } - } }