Skip to content

Commit 74ec31f

Browse files
authored
Merge pull request #2312 from HicServices/task/RDMP-361-cohort-commit-associate-projects
Task/rdmp 361 cohort commit associate projects
2 parents 5eee9b5 + f310479 commit 74ec31f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
- Add Internal Note to Catalogue
99
- Fix issue where project associations were not copied when a CIC was cloned
1010
- Fix issue with using Internal Catalogues in Cohort Identification Configurations
11+
- Fix bug with copying project specific Catalogues between Projects when committing a Cohort
1112

1213
## [9.1.2] - Unreleased
1314
- Automatically fetch user settings from previous versions of RDMP when installing the latest version

Rdmp.UI/SimpleDialogs/Cohorts/CohortCommitProjectSelectionUI.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Rdmp.Core.MapsDirectlyToDatabaseTable;
88
using Rdmp.Core.Providers;
99
using Rdmp.UI.ItemActivation;
10+
using Rdmp.UI.ProjectUI;
1011
using Rdmp.UI.TestsAndSetup.ServicePropogation;
1112
using System;
1213
using System.Collections.Generic;
@@ -122,6 +123,15 @@ private void btnExistingProject_Click(object sender, EventArgs e)
122123
if (selected != null)
123124
{
124125
Result = selected as Project;
126+
if (_currentProject != null)
127+
{
128+
var projectSpecificCatalogues = _currentProject.GetAllProjectCatalogues().Where(p => p.IsProjectSpecific(_activator.RepositoryLocator.DataExportRepository));
129+
foreach (var psc in projectSpecificCatalogues)
130+
{
131+
var cmd = new ExecuteCommandMakeCatalogueProjectSpecific(_activator, psc, Result, true);
132+
cmd.Execute();
133+
}
134+
}
125135
DialogResult = DialogResult.OK;
126136
Close();
127137
}

0 commit comments

Comments
 (0)