Skip to content

Commit

Permalink
Merge pull request #5279 from inception-project/bugfix/5278-Merge-som…
Browse files Browse the repository at this point in the history
…etimes-not-working-when-switching-between-documents-in-integrated-curation-mode

#5278 - Merge sometimes not working when switching between documents in integrated curation mode
  • Loading branch information
reckart authored Feb 6, 2025
2 parents 915040e + ea85827 commit 7207b81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ private void onPreparingToOpenDocumentEvent(PreparingToOpenDocumentEvent aEvent)
handleSessionActivationPageParameters(page, params, doc, sessionOwner);

ensureDataOwnerMatchesCurationTarget(page, project, sessionOwner, dataOwner);
curationSidebarService.setDefaultSelectedUsersForDocument(aEvent.getSessionOwner(),
aEvent.getDocument());

var prefs = preferencesService
.loadDefaultTraitsForProject(KEY_CURATION_SIDEBAR_MANAGER_PREFS, project);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
import de.tudarmstadt.ukp.clarin.webanno.model.SourceDocument;
import de.tudarmstadt.ukp.clarin.webanno.security.UserDao;
import de.tudarmstadt.ukp.clarin.webanno.security.model.User;
import de.tudarmstadt.ukp.inception.annotation.events.DocumentOpenedEvent;
import de.tudarmstadt.ukp.inception.curation.merge.strategy.MergeStrategyFactory;
import de.tudarmstadt.ukp.inception.curation.model.CurationSettings;
import de.tudarmstadt.ukp.inception.curation.model.CurationSettingsId;
Expand Down Expand Up @@ -357,13 +356,6 @@ public void closeSession(String aSessionOwner, long aProjectId)
}
}

@EventListener
@Transactional
public void onDocumentOpened(DocumentOpenedEvent aEvent)
{
setDefaultSelectedUsersForDocument(aEvent.getSessionOwner(), aEvent.getDocument());
}

@Override
public void setDefaultSelectedUsersForDocument(String aSessionOwner, SourceDocument aDocument)
{
Expand Down

0 comments on commit 7207b81

Please sign in to comment.