Skip to content

Commit

Permalink
Set title / url for associated resources to empty string if not defin…
Browse files Browse the repository at this point in the history
…ed (#6512)

* Set title / url for associated resources to empty string if not defined.
Previously were set as null, displaying that value in the user interface

* Set title / url for associated resources to empty string if not defined (#56)

Co-authored-by: François Prunayre <[email protected]>
  • Loading branch information
josegar74 and fxprunayre authored Oct 7, 2022
1 parent e96e95f commit b6760bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ private AssociatedResource elementAsAssociatedResource(Element ref) {
if (StringUtils.isEmpty(sibUuid)) {
sibUuid = ref.getTextNormalize();
}
String title = ref.getAttributeValue("title", XLINK);
String url = ref.getAttributeValue("href", XLINK);
String title = ref.getAttributeValue("title", XLINK, "");
String url = ref.getAttributeValue("href", XLINK, "");
return new AssociatedResource(sibUuid, "", "", url, title);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ private AssociatedResource elementAsAssociatedResource(Element ref) {
if (StringUtils.isEmpty(sibUuid)) {
sibUuid = ref.getTextNormalize();
}
String title = ref.getAttributeValue("title", XLINK);
String url = ref.getAttributeValue("href", XLINK);
String title = ref.getAttributeValue("title", XLINK, "");
String url = ref.getAttributeValue("href", XLINK, "");
return new AssociatedResource(sibUuid, "", "", url, title);
}

Expand Down

0 comments on commit b6760bc

Please sign in to comment.