Skip to content

Commit e8c5836

Browse files
author
Vikas Agarwal
committed
setting duration from phase template
1 parent d489ee2 commit e8c5836

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/routes/projects/create.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ function createProjectAndPhases(req, project, projectTemplate, productTemplates)
9494
models.ProjectPhase.create({
9595
projectId: newProject.id,
9696
name: _.get(phase, 'name', `Stage ${phaseIdx}`),
97+
duration: _.get(phase, 'duration', 0),
9798
status: _.get(phase, 'status', PROJECT_PHASE_STATUS.DRAFT),
9899
budget: _.get(phase, 'budget', 0),
99100
updatedBy: req.authUser.userId,

0 commit comments

Comments
 (0)