Skip to content

Commit

Permalink
Reindex the working copy when transferred the ownership of a single m…
Browse files Browse the repository at this point in the history
…etadata. Related to geonetwork#6144
  • Loading branch information
josegar74 committed Mar 4, 2022
1 parent 89cdb34 commit 1aab7b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ MetadataProcessingReport setRecordOwnership(
report, dataManager, accessManager,
serviceContext, listOfUpdatedRecords, metadataUuid, session);
dataManager.flush();
dataManager.indexMetadata(String.valueOf(metadata.getId()), true);
dataManager.indexMetadata(listOfUpdatedRecords);

} catch (Exception exception) {
report.addError(exception);
Expand Down

0 comments on commit 1aab7b3

Please sign in to comment.