From ae659a3ee2b709843fbf18c460544c6f368b9f97 Mon Sep 17 00:00:00 2001 From: Leonidas Triantafyllou Date: Thu, 16 Jan 2025 09:42:30 +0100 Subject: [PATCH] YDA-6104: update group after csv import fix role changes in group manager --- group_manager/static/group_manager/js/group_manager.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/group_manager/static/group_manager/js/group_manager.js b/group_manager/static/group_manager/js/group_manager.js index 26590d16..bea7eed7 100644 --- a/group_manager/static/group_manager/js/group_manager.js +++ b/group_manager/static/group_manager/js/group_manager.js @@ -490,6 +490,13 @@ async function processImportedRow (row) { catIdx = catIdx + 1 } $('#group-list').html(html) + + // Get the selected group if exists and reselect it to get the changes. + // If no active group, no group is selected. + const activeGroupName = Yoda.storage.session.get('selected-group') + if (activeGroupName) { + Yoda.groupManager.selectGroup(activeGroupName) + } }) } }