Skip to content

Commit

Permalink
Merge pull request #2867 from dimagi/fixCallOutSearchNavigation
Browse files Browse the repository at this point in the history
Fixes form navigation error due to multiple search callout extras
  • Loading branch information
shubham1g5 authored Oct 22, 2024
2 parents 28e87d5 + 8007c6c commit 890cece
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/org/commcare/adapters/EntityListAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.commcare.cases.entity.NodeEntityFactory;
import org.commcare.dalvik.R;
import org.commcare.interfaces.AndroidSortableEntityAdapter;
import org.commcare.modern.session.SessionWrapper;
import org.commcare.preferences.MainConfigurablePreferences;
import org.commcare.session.SessionInstanceBuilder;
import org.commcare.suite.model.Action;
Expand Down Expand Up @@ -429,7 +430,10 @@ public void loadCalloutDataFromSession() {

public void saveCalloutDataToSession() {
if (isFilteringByCalloutResult) {
CommCareApplication.instance().getCurrentSession().addExtraToCurrentFrameStep(SessionInstanceBuilder.KEY_ENTITY_LIST_EXTRA_DATA, calloutResponseData);
SessionWrapper session = CommCareApplication.instance().getCurrentSession();
session.removeExtraFromCurrentFrameStep(SessionInstanceBuilder.KEY_ENTITY_LIST_EXTRA_DATA);
session.addExtraToCurrentFrameStep(SessionInstanceBuilder.KEY_ENTITY_LIST_EXTRA_DATA,
calloutResponseData);
}
}

Expand Down

0 comments on commit 890cece

Please sign in to comment.