[rt-commit] [svn] r601 - rt/branches/rt-3.1/html/Search/Elements
jesse at fsck.com
jesse at fsck.com
Wed Mar 17 18:16:26 EST 2004
Author: jesse
Date: Wed Mar 17 18:16:25 2004
New Revision: 601
Modified:
rt/branches/rt-3.1/html/Search/Elements/SelectPersonType
Log:
Allow searching for tickets based on user attributes other than 'EmailAddress'
Modified: rt/branches/rt-3.1/html/Search/Elements/SelectPersonType
==============================================================================
--- rt/branches/rt-3.1/html/Search/Elements/SelectPersonType (original)
+++ rt/branches/rt-3.1/html/Search/Elements/SelectPersonType Wed Mar 17 18:16:25 2004
@@ -26,7 +26,9 @@
<OPTION VALUE="">-</OPTION>
% }
%for my $option (@types) {
-<OPTION VALUE="<%$option%>" <%$option eq $Default && "SELECTED"%>><%loc($option)%></OPTION>
+%foreach my $subtype (@subtypes) {
+<OPTION VALUE="<%"$option.$subtype"%>" <%$option eq $Default && $subtype eq 'EmailAddress' && "SELECTED"%> ><%loc("[_1] [_2]",$option, $subtype)%></OPTION>
+% }
%}
</SELECT>
@@ -36,8 +38,11 @@
@types = qw(Cc AdminCc);
}
else {
- @types = qw(Requestor Cc AdminCc Watcher Owner Creator LastUpdatedBy);
+ @types = qw(Requestor Cc AdminCc Watcher Owner);
}
+
+my @subtypes = qw(EmailAddress Name RealName Nickname Organization Address1 Address2 WorkPhone HomePhone MobilePhone PagerPhone);
+
</%INIT>
<%ARGS>
$AllowNull => 1
More information about the Rt-commit
mailing list