[Fix] Fixed ModelHelper.copyExistingRelation()

This commit is contained in:
Robert von Burg 2021-05-31 21:47:49 +02:00
parent 78b576b514
commit 2bec7d89cf
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ public class ModelHelper {
if (src.hasParameter(bagId, paramId) && !src.getStringP(bagId, paramId).isEmpty()) {
StringParameter existingBillingIdP = src.getStringP(bagId, paramId);
if (!dst.hasParameter(bagId, paramId)) {
dst.addParameter(existingBillingIdP.getClone());
dst.addParameter(bagId, existingBillingIdP.getClone());
} else if (dst.getStringP(bagId, paramId).isEmpty()) {
dst.setString(bagId, paramId, existingBillingIdP.getValue());
}