Only use profiled datatype information for generating snapshots for Resource and Extension

This commit is contained in:
Grahame Grieve 2024-12-19 13:14:17 +11:00
parent e021fb31fd
commit fd2bd896bf

View File

@ -652,13 +652,15 @@ public class ProfilePathProcessor {
}
}
}
template = src.copy().setPath(currentBase.getPath());
template.setSliceName(null);
// temporary work around
if (!"Extension".equals(diffMatches.get(0).getType().get(0).getCode())) {
template.setMin(currentBase.getMin());
template.setMax(currentBase.getMax());
}
if (Utilities.existsInList(currentBase.typeSummary(), "Extension", "Resource")) {
template = src.copy().setPath(currentBase.getPath());
template.setSliceName(null);
// temporary work around
if (!"Extension".equals(diffMatches.get(0).getType().get(0).getCode())) {
template.setMin(currentBase.getMin());
template.setMax(currentBase.getMax());
}
}
}
}
if (template == null)