try fixing issue with ContactPoint.rank

This commit is contained in:
Grahame Grieve 2019-12-16 23:34:28 +11:00
parent 2a867d66ee
commit 930ab92929
1 changed files with 5 additions and 2 deletions

View File

@ -924,8 +924,9 @@ public class VersionConvertor_10_50 {
tgt.setSystem(convertContactPointSystem(src.getSystem()));
tgt.setValue(src.getValue());
tgt.setUse(convertContactPointUse(src.getUse()));
if (src.hasRank())
if (src.hasRank()) {
tgt.setRank(src.getRank());
}
tgt.setPeriod(convertPeriod(src.getPeriod()));
return tgt;
}
@ -939,7 +940,9 @@ public class VersionConvertor_10_50 {
tgt.setSystem(convertContactPointSystem(src.getSystem()));
tgt.setValue(src.getValue());
tgt.setUse(convertContactPointUse(src.getUse()));
tgt.setRank(src.getRank());
if (src.hasRank()) {
tgt.setRank(src.getRank());
}
if (src.hasPeriod())
tgt.setPeriod(convertPeriod(src.getPeriod()));
return tgt;