Fix delete relation

This commit is contained in:
Fabio Sinibaldi 2022-11-11 12:04:55 +01:00
parent 237014c3d0
commit c89f8a66c4
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ public class ProfiledMongoManager extends MongoManager implements MongoManagerI<
// delete reverse relation
if(toDeleteReverseRelation!=null){
log.debug("Removing reverse of {} ",r);
ProfiledMongoManager otherManager = (targetUCD.equals(this.useCaseDescriptor.getId()))?this:new ProfiledMongoManager(targetUCD);
ProfiledMongoManager otherManager = (toUseTargetUCD.equals(this.useCaseDescriptor.getId()))?this:new ProfiledMongoManager(targetUCD);
Project other = getByID(targetId);
other = otherManager.lock(other.getId(),"Remove reverse relation "+toDeleteReverseRelation + " toward "+getUseCaseDescriptor().getId()+":"+id);
final String finalToDeleteReverseRelation = toDeleteReverseRelation;