Skip to content

Commit

Permalink
Merge branch 'rel-10_0' into rel-10_1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven committed Jan 22, 2025
2 parents d7c46a5 + e113ffc commit b008616
Showing 1 changed file with 10 additions and 5 deletions.
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

0 comments on commit b008616

Please sign in to comment.