Skip to content

Commit

Permalink
Merge branch 'rel-10_1' into rel-11_0
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Sep 30, 2024
2 parents d91a548 + fa26604 commit 52c1cbc
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Kernel/Modules/AgentTicketQuickClose.pm
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ sub _SetState {

return if !$State;

if ( $Param{Config}{RequiredLock} ) {
$TicketObject->TicketOwnerSet(
TicketID => $Self->{TicketID},
UserID => $Self->{UserID},
NewUserID => $Self->{UserID},
);
}

my $Success = $TicketObject->TicketStateSet(
State => $State,
TicketID => $Self->{TicketID},
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Output/HTML/Preferences/Password.pm
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ sub Run {
}

# check min 2 char password
if ( $Config->{PasswordMin2Characters} && $Pw !~ /[A-z][A-z]/ ) {
if ( $Config->{PasswordMin2Characters} && $Pw !~ /\w.*\w/ ) {
$Self->{Error} = $LanguageObject->Translate('Can\'t update password, it must contain at least 2 letter characters!');
return;
}
Expand Down
9 changes: 9 additions & 0 deletions Kernel/System/Stats.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2864,8 +2864,17 @@ sub _GenerateDynamicStats {
# all elements which are shown with multiselectfields
if ( $Ref1->{Block} ne 'Time' ) {
my %SelectedValues;
SELECTEDVALUE:
for my $Ref2 ( @{ $Ref1->{SelectedValues} } ) {

if ( !defined $Ref1->{Values}{$Ref2} ) {
$Kernel::OM->Get('Kernel::System::Log')->Log(
Priority => 'notice',
Message => "Attribute $Ref2 should be used as $Ref1->{Name} in statistic $Param{StatID}, but is not present. Skipping it.",
);
next SELECTEDVALUE;
}

# Do not translate the values, please see bug#12384 for more information.
$SelectedValues{$Ref2} = $Ref1->{Values}{$Ref2};
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/test/Selenium/Output/Preferences/Customer/Password.t
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ $Selenium->RunTest(
$Selenium->find_element( "#Update", 'css' )->VerifiedClick();

# check for correct password update preferences message on screen
my $UpdateMessage = "Preferences updated successfully!";
$Selenium->content_contains( $UpdateMessage, 'Customer preference password - updated' );
my $UpdateMessage = "Session invalid. Please log in again.";
$Selenium->content_contains( $UpdateMessage, 'Customer preference password - updated and session invalidated.' );
};
}
);
Expand Down

0 comments on commit 52c1cbc

Please sign in to comment.