<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">The link to the wiki is:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">http://requesttracker.wikia.com/wiki/QuickTicket#Add_custom_fields_to_portlet<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com]
<b>On Behalf Of </b>Raymond Corbett<br>
<b>Sent:</b> Friday, March 15, 2013 3:01 PM<br>
<b>To:</b> rt-users@lists.bestpractical.com<br>
<b>Subject:</b> [rt-users] Code error following http://requesttracker.wikia.com/wiki/QuickTicket<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Found this link to help me put custom fields into the QuickCreate portlet.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Followed all along well.  <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Get the following error on compile.     Anyone have any idea what I might be doing wrong.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Line in question  line  86  which  reads   <span style="font-size:10.0pt;font-family:"Courier New";color:red">
var defaultQueue = '<% $defaultQueue %>';<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">});<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">        var defaultQueue = '<% $defaultQueue %>';<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">        if(defaultQueue == "") {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">            defaultQueue = jQuery('#quick-ticket').find('.select-queue[name=Queue]').children().first().text();<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">        }<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">        updateCustomFields(defaultQueue);<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     });<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Error log is:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">torrepo:/opt/rt4/var # [Fri Mar 15 18:11:56 2013] [error]: Error during compilation of<o:p></o:p></p>
<p class="MsoNormal">/n/software/linux/servers/rt4/local/html/Elements/QuickTicket:<o:p></o:p></p>
<p class="MsoNormal">Global symbol "$defaultQueue" requires explicit package name at<o:p></o:p></p>
<p class="MsoNormal">/n/software/linux/servers/rt4/local/html/Elements/QuickTicket line 86.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Stack:<o:p></o:p></p>
<p class="MsoNormal">  [/usr/lib/perl5/site_perl/5.10.0/HTML/Mason/Interp.pm:450]<o:p></o:p></p>
<p class="MsoNormal">  [/usr/lib/perl5/site_perl/5.10.0/HTML/Mason/Request.pm:1127]<o:p></o:p></p>
<p class="MsoNormal">  [/usr/lib/perl5/site_perl/5.10.0/HTML/Mason/Request.pm:1060]<o:p></o:p></p>
<p class="MsoNormal">  [/usr/lib/perl5/site_perl/5.10.0/HTML/Mason/Request.pm:1239]<o:p></o:p></p>
<p class="MsoNormal">  [/n/software/linux/servers/rt4/share/html/Elements/MyRT:95]<o:p></o:p></p>
<p class="MsoNormal">  [/n/software/linux/servers/rt4/local/html/index.html:78]<o:p></o:p></p>
<p class="MsoNormal">  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:634]<o:p></o:p></p>
<p class="MsoNormal">  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:335]<o:p></o:p></p>
<p class="MsoNormal">  [/n/software/linux/servers/rt4/share/html/autohandler:53] (/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm:208)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="8" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td width="6%" style="width:6.0%;padding:0in 0in 0in 0in">
<p class="MsoNormal" style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<a href="http://www.arcproductions.com/"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";text-decoration:none"><img border="0" width="150" height="99" id="Picture_x0020_1" src="cid:image001.gif@01CE2195.972AA080" alt="ARC"></span></a><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
</td>
<td width="94%" style="width:94.0%;padding:0in 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt;mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:black">Ray Corbett  Technology Projects Manager</span></b><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#333333"><br>
<br>
p:</span></b><b><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
</span></b><b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#333333">416.682.5200 x5232  | f: 416.682.5209<br>
Arc Productions Ltd. | 230 Richmond Street East | Toronto, ON M5A 1P4<br>
<a href="http://www.arcproductions.com"><span style="color:#1A794D;text-decoration:none">www.arcproductions.com</span></a></span></b><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#333333">
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> <o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>