Skip to content

Commit ad6ae12

Browse files
Stefan Härterstefanhaerter
authored andcommitted
Invalid agents can be included in ticket search via sysconfig option.
1 parent 6eab899 commit ad6ae12

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Kernel/Config/Files/XML/Ticket.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@
120120
<Item ValueType="Entity" ValueEntityType="Type" Translatable="1">Unclassified</Item>
121121
</Value>
122122
</Setting>
123+
<Setting Name="Ticket::Search###IncludeInvalidAgents" Required="0" Valid="0">
124+
<Description Translatable="1">When searching for tickets in agent attributes, include invalid agents.</Description>
125+
<Navigation>Core::Ticket</Navigation>
126+
<Value>
127+
<Item ValueType="Checkbox">0</Item>
128+
</Value>
129+
</Setting>
123130
<Setting Name="Ticket::Service" Required="1" Valid="1">
124131
<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>
125132
<Navigation>Core::Ticket</Navigation>

Kernel/Modules/AgentTicketSearch.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,7 @@ sub Run {
19021902
Type => 'Long',
19031903
Valid => 0,
19041904
);
1905-
if ( !$ConfigObject->Get('Ticket::ChangeOwnerToEveryone') ) {
1905+
if ( !$ConfigObject->Get('Ticket::ChangeOwnerToEveryone') && !$ConfigObject->Get('Ticket::Search')->{IncludeInvalidAgents} ) {
19061906
my %Involved = $Kernel::OM->Get('Kernel::System::Group')->PermissionUserInvolvedGet(
19071907
UserID => $Self->{UserID},
19081908
Type => 'ro',

0 commit comments

Comments
 (0)