Skip to content

Commit 5bfb99a

Browse files
author
Micha Kiener
committed
SPR-6423, fixing bug while adding new nested conversation
1 parent 19daba5 commit 5bfb99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.springframework.context/src/main/java/org/springframework/conversation/manager/ConversationManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public Conversation beginConversation(boolean temporary, JoinMode joinMode) {
246246
// nest the new conversation to the current one, if available and
247247
// set the current one as the parent of the new one
248248
if (joinMode.mustBeNested()) {
249-
newConversation.setParentConversation(currentConversation, joinMode.mustBeIsolated());
249+
currentConversation.addChildConversation(newConversation, joinMode.mustBeIsolated());
250250
currentConversation.deactivated(joinMode.mustBeIsolated() ? ConversationDeactivationType.NEW_ISOLATED
251251
: ConversationDeactivationType.NEW_NESTED, newConversation);
252252
}

0 commit comments

Comments
 (0)