[rt-devel] SelectRequestor Error

Ajunpreet Singh ajunpreet at gmail.com
Tue Jun 19 15:22:29 EDT 2012


*Any idea why i get this error when trying to install *
http://requesttracker.wikia.com/wiki/SelectRequestor
i have RT 4.0.5, i placed the first SelectRequestor file in
/local/share/rt40/html/Elements

and i add this to my /local/www/rt40/share/Tickets/Create.html by replacing
the <& /Elements/EmailInput....... &>

 (<& /Elements/SelectRequestor, Name => "Requestors", QueueObj =>
$QueueObj, Default =>
$ARGS{Requestors}||$session{CurrentUser}->EmailAddress, DefaultValue=> 0 &>)

 and i get this error

*System error*
*56:* <INPUT Name="Requestors" Value="<%$Default%>" SIZE=40>*57:* <SELECT
NAME="user_select", onChange="set_requestor()">*58:* <OPTION SELECTED
VALUE="0">Select a Requestor</OPTION>*59:* %foreach my $user (sort { lc($a)
cmp lc($b) } keys %users) {*60:* *61:* %}*62:* </SELECT>*63:* *64:* *...* *
error:* Error during compilation of
/usr/local/share/rt40/html/Elements/SelectRequestor:
Global symbol "$user" requires explicit package name at
/usr/local/share/rt40/html/Elements/SelectRequestor line 60.
Global symbol "$user" requires explicit package name at
/usr/local/share/rt40/html/Elements/SelectRequestor line 60.

*context:* *...* <OPTION VALUE="<% $users{$user} %>"><% $user %></OPTION>*code
stack:* /usr/local/lib/perl5/site_perl/5.10.1/HTML/Mason/Interp.pm:459
/usr/local/lib/perl5/site_perl/5.10.1/HTML/Mason/Request.pm:1127
/usr/local/lib/perl5/site_perl/5.10.1/HTML/Mason/Request.pm:1041
/usr/local/lib/perl5/site_perl/5.10.1/HTML/Mason/Request.pm:1239
/usr/local/share/rt40/html/Ticket/Create2.html:132
/usr/local/share/rt40/html/Widgets/TitleBox:56
/usr/local/share/rt40/html/Ticket/Create2.html:204
/usr/local/share/rt40/html/Ticket/autohandler:19
/usr/local/lib/perl5/site_perl/5.10.1/RT/Interface/Web.pm:548
/usr/local/lib/perl5/site_perl/5.10.1/RT/Interface/Web.pm:295
/usr/local/share/rt40/html/autohandler:53
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20120619/3d1eba1d/attachment.html>


More information about the rt-devel mailing list