%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
Type => 'component',
Path => '/Elements/SelectBoolean',
Arguments => {
- True => loc("matches"),
- False => loc("doesn't match"),
- TrueVal => 'LIKE',
- FalseVal => 'NOT LIKE',
+ True => loc("matches"),
+ False => loc("doesn't match"),
+ TrueVal => 'LIKE',
+ FalseVal => 'NOT LIKE',
},
},
Value => { Type => 'text', Size => 20 },
Value => {
Type => 'component',
Path => '/Elements/SelectQueue',
- Arguments => { NamedValues => 1, CheckQueueRight => 'ShowTicket' },
+ Arguments => { NamedValues => 1, },
},
},
{
},
Value => {
Type => 'component',
- Path => '/Elements/SelectStatus',
- Arguments => { SkipDeleted => 1 },
+ Path => '/Ticket/Elements/SelectStatus',
+ Arguments => { SkipDeleted => 1, Queues => \%queues },
},
},
{
Owner => loc('Owner'),
Creator => loc('Creator'),
LastUpdatedBy => loc('Last updated by'),
+ UpdatedBy => loc('Updated by'),
],
},
Op => {
Value => {
Type => 'component',
Path => '/Elements/SelectOwner',
- Arguments => { ValueAttribute => 'Name' },
+ Arguments => { ValueAttribute => 'Name', Queues => \%queues },
},
},
{
Value => { Type => 'text', Size => 20 }
},
{
+ Name => 'WatcherGroup',
+ Field => {
+ Type => 'component',
+ Path => 'SelectPersonType',
+ Arguments => { Default => 'Owner', Suffix => 'Group' },
+ },
+ Op => {
+ Type => 'select',
+ Options => [ '=' => loc('is') ],
+ },
+ Value => { Type => 'text', Size => 20, "data-autocomplete" => "Groups" }
+ },
+ {
Name => 'Date',
Field => {
Type => 'component',
},
);
+#freeside
+
$m->callback( Conditions => \@lines );
</%INIT>
+<%ARGS>
+%queues => ()
+</%ARGS>