
falcone at bestpractical
Jun 20, 2012, 9:15 AM
Post #2 of 2
(247 views)
Permalink
|
On Tue, Jun 19, 2012 at 03:22:29PM -0400, Ajunpreet Singh wrote: > Any idea why i get this error when trying to install > [1]http://requesttracker.wikia.com/wiki/SelectRequestor > i have RT 4.0.5, i placed the first SelectRequestor file in /local/share/rt40/html/Elements I'm curious why you're using this. RT 4 has built in autocompletion and searching on arbitrary User attributes. If you tell us what you're trying to do someone may be able to suggest the core way (rather than adapting 3.8 code for 4.0). -kevin > 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 /usr/local/lib/perl5/site_perl/5.10.1/HTML/Mason/Interp.pm:459 > stack: /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
|