small fixes
This commit is contained in:
parent
f0db67d3e0
commit
5846a378b8
|
@ -673,8 +673,7 @@ public class WordBuilderImpl implements WordBuilder {
|
|||
String label = "";
|
||||
if (referenceModel.getLabel() != null && !referenceModel.getLabel().isBlank()) {
|
||||
label = referenceModel.getLabel();
|
||||
}
|
||||
if (referenceModel.getDescription() != null && !referenceModel.getDescription().isBlank()) {
|
||||
} else if (referenceModel.getDescription() != null && !referenceModel.getDescription().isBlank()) {
|
||||
label = (label.isBlank() ? "" : " ") + referenceModel.getDescription();
|
||||
}
|
||||
ReferenceFieldModel fieldModel = referenceModel.getDefinition() != null && referenceModel.getDefinition().getFields() != null && !referenceModel.getDefinition().getFields().isEmpty() ? referenceModel.getDefinition().getFields().stream().filter(x -> x.getCode().equals("pidTypeField")).findFirst().orElse(null) : null;
|
||||
|
@ -810,8 +809,7 @@ public class WordBuilderImpl implements WordBuilder {
|
|||
String label = "";
|
||||
if (referenceModel.getLabel() != null && !referenceModel.getLabel().isBlank()) {
|
||||
label = referenceModel.getLabel();
|
||||
}
|
||||
if (referenceModel.getDescription() != null && !referenceModel.getDescription().isBlank()) {
|
||||
} else if (referenceModel.getDescription() != null && !referenceModel.getDescription().isBlank()) {
|
||||
label = (label.isBlank() ? "" : " ") + referenceModel.getDescription();
|
||||
}
|
||||
if (!label.isBlank()) values.add(label);
|
||||
|
|
Loading…
Reference in New Issue