Skip to content

Commit

Permalink
[Fix] copy data between models, special case for valuesets
Browse files Browse the repository at this point in the history
  • Loading branch information
samatstariongroup committed Apr 5, 2022
1 parent 83e63ee commit acafa78
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion CDP4WebServices.API/Services/Supplemental/ParameterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,20 @@ public partial class ParameterService
valueset.Formula = this.DefaultValueArrayFactory.CreateDefaultValueArray(newparameter.ParameterType);
valueset.Published = this.DefaultValueArrayFactory.CreateDefaultValueArray(newparameter.ParameterType);

this.ValueSetService.UpdateConcept(transaction, partition, valueset, copy);
var fullAccesEnabled = this.TransactionManager.IsFullAccessEnabled();
if (!fullAccesEnabled)
{
this.TransactionManager.SetFullAccessState(true);
}

try
{
this.ValueSetService.UpdateConcept(transaction, partition, valueset, copy);
}
finally
{
this.TransactionManager.SetFullAccessState(fullAccesEnabled);
}
}
}

Expand Down

0 comments on commit acafa78

Please sign in to comment.