Making the Requestor field a selection field?

When creating a new ticket, I wanted to be able to have the Requestors field
be a drop down list of currently existing users (this made things simple and
allowed for the real name to be displayed while the email address still gets
used). I managed to do this easily by modifying Ticket/Create.html and
adding a file, mwh.html:

— /opt/rt3/share/html/Ticket/Create.html 2004-07-12
14:00:53.000000000 -0400
+++ ./Create.html 2004-10-07 13:49:41.000000000 -0400
@@ -55,7 +55,7 @@
<&|/l&>Requestors</&>:

- +<& /Ticket/mwh.html &>

mwh.html:

%while ( my $u = $Users->Next() ) { % if ( $u->RealName() ne"" ) { <%$u->RealName()%> % } %}

<%INIT>
my $Users = RT::Users->new($session{CurrentUser});
</%INIT>

However, I realized that this didn’t leave the option for selecting multiple
Requestors. No problem, I thought, I’ll just add the “multiple” option to
the “SELECT” tag. Now, however, the Requestor turns into
“ARRAY(0xa282c38)”. I understand what that value is, but I’m not finding
where this is being processed. If someone could at the very least point me
there, that’d be great. If someone has the solution, even better. :slight_smile:

Thanks!

-matt

Matthew Hanley
mhanley@cxtec.com

Looking in CreateTicket sub of /opt/rt3/lib/RT/Interface/Web.pm

-ToddOn Thu, Oct 07, 2004 at 02:07:21PM -0400, Matt Hanley wrote:

When creating a new ticket, I wanted to be able to have the Requestors field
be a drop down list of currently existing users (this made things simple and
allowed for the real name to be displayed while the email address still gets
used). I managed to do this easily by modifying Ticket/Create.html and
adding a file, mwh.html:

— /opt/rt3/share/html/Ticket/Create.html 2004-07-12
14:00:53.000000000 -0400
+++ ./Create.html 2004-10-07 13:49:41.000000000 -0400
@@ -55,7 +55,7 @@
<&|/l&>Requestors</&>:

- +<& /Ticket/mwh.html &>

mwh.html:

%while ( my $u = $Users->Next() ) { % if ( $u->RealName() ne"" ) { <%$u->RealName()%> % } %}

<%INIT>
my $Users = RT::Users->new($session{CurrentUser});
</%INIT>

However, I realized that this didn’t leave the option for selecting multiple
Requestors. No problem, I thought, I’ll just add the “multiple” option to
the “SELECT” tag. Now, however, the Requestor turns into
“ARRAY(0xa282c38)”. I understand what that value is, but I’m not finding
where this is being processed. If someone could at the very least point me
there, that’d be great. If someone has the solution, even better. :slight_smile:

Thanks!

-matt

Matthew Hanley
mhanley@cxtec.com


Rt-devel mailing list
Rt-devel@lists.bestpractical.com
The rt-devel Archives