[rt-commit] [svn] r510 - in rt/branches/rt-3.1/html: Elements
Search/Elements
jesse at fsck.com
jesse at fsck.com
Mon Mar 8 20:41:01 EST 2004
Author: jesse
Date: Mon Mar 8 20:41:00 2004
New Revision: 510
Modified:
rt/branches/rt-3.1/html/Elements/SelectQueue
rt/branches/rt-3.1/html/Search/Elements/PickBasics
rt/branches/rt-3.1/html/Search/Elements/PickRestriction
Log:
Now the Search UI does Queue names instead of id
Modified: rt/branches/rt-3.1/html/Elements/SelectQueue
==============================================================================
--- rt/branches/rt-3.1/html/Elements/SelectQueue (original)
+++ rt/branches/rt-3.1/html/Elements/SelectQueue Mon Mar 8 20:41:00 2004
@@ -30,7 +30,7 @@
% }
% while (my $queue=$q->Next) {
% if ($ShowAllQueues || $queue->CurrentUserHasRight('CreateTicket')) {
-<OPTION VALUE="<%$queue->Id%>" <%($Default && ($queue->Id == $Default)) && 'SELECTED'%>><%$queue->Name%>
+<OPTION VALUE="<%($NamedValues ? $queue->Name : $queue->Id) %>" <%( $queue->Id == $Default ? 'SELECTED' : '')%>><%$queue->Name%>
% if (($Verbose) and ($queue->Description) ){
(<%$queue->Description%>)
% }
@@ -44,6 +44,7 @@
$ShowAllQueues => 1
$Name => undef
$Verbose => undef
+$NamedValues => 0
$Default => 0
$Lite => 0
</%ARGS>
Modified: rt/branches/rt-3.1/html/Search/Elements/PickBasics
==============================================================================
--- rt/branches/rt-3.1/html/Search/Elements/PickBasics (original)
+++ rt/branches/rt-3.1/html/Search/Elements/PickBasics Mon Mar 8 20:41:00 2004
@@ -99,7 +99,7 @@
TrueVal=> '=',
FalseVal => '!=' &>
</td><td>
-<& /Elements/SelectQueue, Name => "ValueOfQueue" &>
+<& /Elements/SelectQueue, Name => "ValueOfQueue", NamedValues => 1 &>
% } elsif ($field eq "id") {
<&|/l&>Id</&>
</td><td>
Modified: rt/branches/rt-3.1/html/Search/Elements/PickRestriction
==============================================================================
--- rt/branches/rt-3.1/html/Search/Elements/PickRestriction (original)
+++ rt/branches/rt-3.1/html/Search/Elements/PickRestriction Mon Mar 8 20:41:00 2004
@@ -48,7 +48,7 @@
False => loc("isn't"),
TrueVal=> '=',
FalseVal => '!=' &>
-<& /Elements/SelectQueue, Name => "ValueOfQueue" &>
+<& /Elements/SelectQueue, Name => "ValueOfQueue", NamedValues => '1' &>
<li><&|/l&>Priority</&> <& /Elements/SelectEqualityOperator, Name => "PriorityOp" &>
More information about the Rt-commit
mailing list