projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.14 (#13852)
[freeside.git]
/
rt
/
share
/
html
/
Search
/
Elements
/
PickTicketCFs
diff --git
a/rt/share/html/Search/Elements/PickTicketCFs
b/rt/share/html/Search/Elements/PickTicketCFs
index
22650e8
..
ada4a79
100644
(file)
--- a/
rt/share/html/Search/Elements/PickTicketCFs
+++ b/
rt/share/html/Search/Elements/PickTicketCFs
@@
-2,7
+2,7
@@
%#
%# COPYRIGHT:
%#
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-201
4
Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-201
7
Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@
-54,8
+54,11
@@
foreach my $id (keys %queues) {
# Gotta load up the $queue object, since queues get stored by name now.
my $queue = RT::Queue->new($session{'CurrentUser'});
$queue->Load($id);
# Gotta load up the $queue object, since queues get stored by name now.
my $queue = RT::Queue->new($session{'CurrentUser'});
$queue->Load($id);
- $CustomFields->LimitToQueue($queue->Id) if $queue->Id;
+ next unless $queue->Id;
+ $CustomFields->LimitToQueue($queue->Id);
+ $CustomFields->SetContextObject( $queue ) if keys %queues == 1;
}
$CustomFields->LimitToGlobal;
}
$CustomFields->LimitToGlobal;
+$CustomFields->OrderBy( FIELD => 'Name', ORDER => 'ASC' );
</%init>
<& PickCFs, %ARGS, TicketSQLField => 'CF', CustomFields => $CustomFields &>
</%init>
<& PickCFs, %ARGS, TicketSQLField => 'CF', CustomFields => $CustomFields &>