Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #3845: Fixed activity config fetching for newly created activities. #4101

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions Kernel/Modules/AdminProcessManagementActivity.pm
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ sub Run {
my $ActivityID = $ParamObject->GetParam( Param => 'ID' ) || '';
my $EntityID = $ParamObject->GetParam( Param => 'EntityID' ) || '';

# get latest config data to send it back to main window
my $ActivityConfig = $Self->_GetActivityConfig(
EntityID => $EntityID,
);

my %SessionData = $Kernel::OM->Get('Kernel::System::AuthSession')->GetSessionIDData(
SessionID => $Self->{SessionID},
);

if ( !exists $SessionData{ProcessManagementScreensPath} ) {

# get latest config data to send it back to main window
my $ActivityConfig = $Self->_GetActivityConfig(
EntityID => $EntityID,
);

# we lost session in between, close the popup and reload
return $Self->_PopupResponse(
ClosePopup => 1,
Expand Down Expand Up @@ -211,6 +211,11 @@ sub Run {

my $Redirect = $ParamObject->GetParam( Param => 'PopupRedirect' ) || '';

# get latest config data to send it back to main window
my $ActivityConfig = $Self->_GetActivityConfig(
EntityID => $EntityID,
);

# check if needed to open another window or if popup should go back
if ( $Redirect && $Redirect eq '1' ) {

Expand Down
Loading