This commit is contained in:
Efstratios Giannopoulos 2024-07-10 13:17:15 +03:00
parent 0c1f72f5e6
commit 1c4788a3f5
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ public class WordBuilderImpl implements WordBuilder {
if (referenceModel.getDescription() != null && !referenceModel.getDescription().isBlank()) { if (referenceModel.getDescription() != null && !referenceModel.getDescription().isBlank()) {
label = (label.isBlank() ? "" : " ") + referenceModel.getDescription(); label = (label.isBlank() ? "" : " ") + referenceModel.getDescription();
} }
createHypeLink(mainDocumentPart, label, referenceModel.getDefinition().getFields().stream().filter(x -> x.getCode().equals("pidTypeField")).map(ReferenceFieldModel::getValue).findFirst().orElse(null), referenceModel.getReference(), hasMultiplicityItems, isMultiAutoComplete && fieldValueModel.getReferences().size() > 1); createHypeLink(mainDocumentPart, label, referenceModel.getDefinition() != null && referenceModel.getDefinition().getFields() != null ? referenceModel.getDefinition().getFields().stream().filter(x -> x.getCode().equals("pidTypeField")).map(ReferenceFieldModel::getValue).findFirst().orElse(null) : null, referenceModel.getReference(), hasMultiplicityItems, isMultiAutoComplete && fieldValueModel.getReferences().size() > 1);
} }
if (hasMultiplicityItems) hasMultiplicityItems = false; if (hasMultiplicityItems) hasMultiplicityItems = false;