Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid agents can be included in ticket search via sysconfig option. #2522

Open
wants to merge 1 commit into
base: rel-11_0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading