Skip to content

Commit

Permalink
Merge branch 'rel-11_0' into rel-11_1
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Jan 3, 2025
2 parents 6a41219 + 82dc314 commit 0301ac2
Show file tree
Hide file tree
Showing 6 changed files with 149 additions and 133 deletions.
35 changes: 0 additions & 35 deletions Kernel/Modules/AgentTicketEmailOutbound.pm
Original file line number Diff line number Diff line change
Expand Up @@ -190,19 +190,6 @@ sub Run {
my $CustomerUser = $Ticket{CustomerUserID};
my $QueueID = $Ticket{QueueID};

# get dynamic field values form http request
my %DynamicFieldValues;

# convert dynamic field values into a structure for ACLs
my %DynamicFieldACLParameters;
DYNAMICFIELD:
for my $DynamicFieldItem ( sort keys %DynamicFieldValues ) {
next DYNAMICFIELD if !$DynamicFieldItem;
next DYNAMICFIELD if !defined $DynamicFieldValues{$DynamicFieldItem};

$DynamicFieldACLParameters{ 'DynamicField_' . $DynamicFieldItem } = $DynamicFieldValues{$DynamicFieldItem};
}

# get config object
my $ConfigObject = $Kernel::OM->Get('Kernel::Config');

Expand All @@ -221,9 +208,6 @@ sub Run {
QueueID => $QueueID,
);

# update Dynamic Fields Possible Values via AJAX
my @DynamicFieldAJAX;

# get dynamic field backend object
my $DynamicFieldBackendObject = $Kernel::OM->Get('Kernel::System::DynamicField::Backend');

Expand Down Expand Up @@ -263,24 +247,6 @@ sub Run {
# convert Filer key => key back to key => value using map
%{$PossibleValues} = map { $_ => $PossibleValues->{$_} } keys %Filter;
}

my $DataValues = $DynamicFieldBackendObject->BuildSelectionDataGet(
DynamicFieldConfig => $DynamicFieldConfig,
PossibleValues => $PossibleValues,
Value => $DynamicFieldValues{ $DynamicFieldConfig->{Name} },
) || $PossibleValues;

# add dynamic field to the list of fields to update
push(
@DynamicFieldAJAX,
{
Name => 'DynamicField_' . $DynamicFieldConfig->{Name},
Data => $DataValues,
SelectedID => $DynamicFieldValues{ $DynamicFieldConfig->{Name} },
Translation => $DynamicFieldConfig->{Config}->{TranslatableValues} || 0,
Max => 100,
}
);
}

my $StandardTemplates = $Self->_GetStandardTemplates(
Expand Down Expand Up @@ -413,7 +379,6 @@ sub Run {
Translation => 1,
Max => 100,
},
@DynamicFieldAJAX,
@TemplateAJAX,
],
);
Expand Down
2 changes: 1 addition & 1 deletion Kernel/System/Auth/Sync/LDAP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ sub new {
$Self->{Params} = {};
}

$Self->{StartTLS} = $ConfigObject->Get( 'AuthModule::LDAP::StartTLS' . $Param{Count} ) || '';
$Self->{StartTLS} = $ConfigObject->Get( 'AuthSyncModule::LDAP::StartTLS' . $Param{Count} ) || '';

return $Self;
}
Expand Down
2 changes: 1 addition & 1 deletion Kernel/System/DynamicField.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,7 @@ sub _DynamicFieldReorder {
$Kernel::OM->Get('Kernel::System::Log')->Log(
Priority => 'error',
Message => 'An error was detected while re ordering the field list on field '
. "DynamicField->{Name}!",
. "$DynamicField->{Name}!",
);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions Kernel/System/DynamicField/Driver/Date.pm
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ sub ValueSet {

$Kernel::OM->Get('Kernel::System::Log')->Log(
Priority => 'error',
Message => "The value $ValueItem for the field Date is invalid!\n"
. "The date must be in format 0000-00-00 and the time must be 00:00:00",
Message => "The value $Param{Value} for the field Date is invalid!\n"
. "The date must be in format YYYY-MM-DD and the time must be 00:00:00",
);

return;
Expand Down
1 change: 1 addition & 0 deletions Kernel/System/Email.pm
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ sub Send {
);

my $Parser = MIME::Parser->new();
$Parser->output_to_core('ALL');

$Parser->output_dir( $ConfigObject->Get('TempDir') );
$Entity = $Parser->parse_data( $Header . $EncryptedMessage );
Expand Down
Loading

0 comments on commit 0301ac2

Please sign in to comment.