Skip to content

Commit 3253e74

Browse files
committed
feat: create project with phases if "workstreamsConfig" is not provided
1 parent 2d0a85b commit 3253e74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/routes/projects/create.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@ module.exports = [
433433
// Create project and phases
434434
.then(({ projectTemplate, productTemplates, phasesList, workstreamsConfig }) => {
435435
req.log.debug('Creating project, phase and products');
436-
// TEMPORARY keep ability to create project with phases
437-
// all projects without some phases we treat as workstream projects
438-
if (!(phasesList && phasesList.length > 0)) {
436+
// only if workstream config is provided, treat such project as using workstreams
437+
// otherwise project would still use phases
438+
if (workstreamsConfig) {
439439
_.set(project, 'details.settings.workstreams', true);
440440
}
441441
return createProjectAndPhases(req, project, projectTemplate, productTemplates, phasesList)

0 commit comments

Comments
 (0)