Skip to content

Commit

Permalink
Invalid agents can be included in ticket search via sysconfig option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Härter authored and stefanhaerter committed Feb 6, 2024
1 parent e05b7c7 commit d96fc03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Kernel/Config/Files/XML/Ticket.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@
<Item ValueType="Entity" ValueEntityType="Type" Translatable="1">Unclassified</Item>
</Value>
</Setting>
<Setting Name="Ticket::Search###IncludeInvalidAgents" Required="0" Valid="0">
<Description Translatable="1">When searching for tickets in agent attributes, include invalid agents.</Description>
<Navigation>Core::Ticket</Navigation>
<Value>
<Item ValueType="Checkbox">0</Item>
</Value>
</Setting>
<Setting Name="Ticket::Service" Required="1" Valid="1">
<Description Translatable="1">Allows defining services and SLAs for tickets (e. g. email, desktop, network, ...), and escalation attributes for SLAs (if ticket service/SLA feature is enabled).</Description>
<Navigation>Core::Ticket</Navigation>
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Modules/AgentTicketSearch.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,7 @@ sub Run {
Type => 'Long',
Valid => 0,
);
if ( !$ConfigObject->Get('Ticket::ChangeOwnerToEveryone') ) {
if ( !$ConfigObject->Get('Ticket::ChangeOwnerToEveryone') && !$ConfigObject->Get('Ticket::Search')->{IncludeInvalidAgents} ) {
my %Involved = $Kernel::OM->Get('Kernel::System::Group')->PermissionUserInvolvedGet(
UserID => $Self->{UserID},
Type => 'ro',
Expand Down

0 comments on commit d96fc03

Please sign in to comment.