[rt-users] Code error following http://requesttracker.wikia.com/wiki/QuickTicket

Raymond Corbett Raymond.Corbett at arcproductions.com
Fri Mar 15 15:56:01 EDT 2013


The link to the wiki is:

http://requesttracker.wikia.com/wiki/QuickTicket#Add_custom_fields_to_portlet

From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Raymond Corbett
Sent: Friday, March 15, 2013 3:01 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] Code error following http://requesttracker.wikia.com/wiki/QuickTicket

Found this link to help me put custom fields into the QuickCreate portlet.

Followed all along well.

Get the following error on compile.     Anyone have any idea what I might be doing wrong.

Line in question  line  86  which  reads   var defaultQueue = '<% $defaultQueue %>';

});
        var defaultQueue = '<% $defaultQueue %>';
        if(defaultQueue == "") {
            defaultQueue = jQuery('#quick-ticket').find('.select-queue[name=Queue]').children().first().text();
        }
        updateCustomFields(defaultQueue);

     });


Error log is:

torrepo:/opt/rt4/var # [Fri Mar 15 18:11:56 2013] [error]: Error during compilation of
/n/software/linux/servers/rt4/local/html/Elements/QuickTicket:
Global symbol "$defaultQueue" requires explicit package name at
/n/software/linux/servers/rt4/local/html/Elements/QuickTicket line 86.

Stack:
  [/usr/lib/perl5/site_perl/5.10.0/HTML/Mason/Interp.pm:450]
  [/usr/lib/perl5/site_perl/5.10.0/HTML/Mason/Request.pm:1127]
  [/usr/lib/perl5/site_perl/5.10.0/HTML/Mason/Request.pm:1060]
  [/usr/lib/perl5/site_perl/5.10.0/HTML/Mason/Request.pm:1239]
  [/n/software/linux/servers/rt4/share/html/Elements/MyRT:95]
  [/n/software/linux/servers/rt4/local/html/index.html:78]
  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:634]
  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:335]
  [/n/software/linux/servers/rt4/share/html/autohandler:53] (/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm:208)


[ARC]<http://www.arcproductions.com/>

Ray Corbett  Technology Projects Manager

p: 416.682.5200 x5232  | f: 416.682.5209
Arc Productions Ltd. | 230 Richmond Street East | Toronto, ON M5A 1P4
www.arcproductions.com<http://www.arcproductions.com>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130315/514a436b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 4654 bytes
Desc: image001.gif
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130315/514a436b/attachment.gif>


More information about the rt-users mailing list