Skip to content

Commit

Permalink
publish status not refreshing fix (#8344)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangf1122 authored Sep 4, 2024
1 parent 304d90c commit b5bc474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private void changeToApproved(AbstractMetadata md, MetadataStatus previousStatus
status.setChangeDate(new ISODate());
status.setUserId(ServiceContext.get().getUserSession().getUserIdAsInt());

metadataStatus.setStatusExt(status, false);
metadataStatus.setStatusExt(status, true);

Log.trace(Geonet.DATA_MANAGER, "Metadata with id " + md.getId() + " automatically approved due to publishing.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@
}

if (md) {
gnMetadataManager.updateMdObj(md);
md.publish(publicationType);
}
},
Expand Down

0 comments on commit b5bc474

Please sign in to comment.