Skip to content

Commit

Permalink
Fix #3110
Browse files Browse the repository at this point in the history
  • Loading branch information
hmiguim committed Mar 4, 2024
1 parent e513fb1 commit 368072b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -438,7 +438,7 @@ public void createDescriptiveMetadataFile(String aipId, String representationId,

// If the bundle has values from the form, we need to update the XML by
// applying the values of the form to the raw template
if (bundle.getValues() != null) {
if (bundle.getValues() != null && !bundle.getValues().isEmpty()) {
SupportedMetadataTypeBundle smtb = new SupportedMetadataTypeBundle(bundle.getId(), bundle.getType(),
bundle.getVersion(), bundle.getId(), bundle.getRawTemplate(), bundle.getValues());
bundle.setXml(Browser.retrieveDescriptiveMetadataPreview(user, smtb));
Expand Down

0 comments on commit 368072b

Please sign in to comment.