take copy of code when doing local validation

This commit is contained in:
Grahame Grieve 2024-02-12 16:19:19 +11:00
parent a266540d1d
commit 55cbc66fbf
1 changed files with 1 additions and 1 deletions

View File

@ -1290,7 +1290,7 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
vsc.setUnknownSystems(unknownSystems);
vsc.setThrowToServer(options.isUseServer() && terminologyClientManager.hasClient());
if (!ValueSetUtilities.isServerSide(code.getSystem())) {
res = vsc.validateCode(path, code);
res = vsc.validateCode(path, code.copy());
if (txCache != null && cachingAllowed) {
txCache.cacheValidation(cacheToken, res, TerminologyCache.TRANSIENT);
}