Skip to content

Commit

Permalink
🔧 chore(activities): Update previews activity save process
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjitm committed Dec 18, 2024
1 parent 033dd8f commit b16bd38
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

}
}

Expand Down

0 comments on commit b16bd38

Please sign in to comment.