Allow candidates to also be found when running $mdm-submit.

This commit is contained in:
Jens Kristian Villadsen 2024-05-02 10:12:30 +02:00
parent a91490f1ef
commit a574eb6f48
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ public class MdmGoldenResourceFindingSvc {
}
boolean isUpdate =
theParams.getContext().getRestOperation() == MdmTransactionContext.OperationType.UPDATE_RESOURCE;
theParams.getContext().getRestOperation() == MdmTransactionContext.OperationType.UPDATE_RESOURCE ||
theParams.getContext().getRestOperation() == MdmTransactionContext.OperationType.SUBMIT_RESOURCE_TO_MDM;
// find MdmLinks that have theResource as the source
// (these are current golden resources matching this resource)