<div dir="ltr">Ah, just that question has pointed me in the right direction.<div><br></div><div>For the benefit of the list archives, the problem was with the contents of Set(@PriorityAsStringOrder, ...) in the config.</div>
<div><br></div><div>The example config had one-word labels, something like Set(@PriorityAsStringOrder, qw(low medium high)). My labels are multiple words, so I knew that qw() was the wrong list construction. I changed that to something like </div>
<div><br></div><div>Set(@PriorityAsStringOrder, ['3 days to go', '2 days to go', '1 day to go', 'last day', 'overdue']);</div><div class="gmail_extra"><br></div><div class="gmail_extra">
Obviously my perl is too rusty for my own good. Changing the square brackets to parentheses changed the second argument from an array to a list, as it should have been. This is correct:</div><div class="gmail_extra"><br></div>
<div class="gmail_extra">Set(@PriorityAsStringOrder, ('3 days to go', '2 days to go', '1 day to go', 'last day', 'overdue'));</div><div class="gmail_extra"><br></div><div class="gmail_extra">
It all works as I expect now. Perhaps the documentation could include more examples?<br><br>cheers</div><div class="gmail_extra">rob</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 10, 2013 at 3:56 PM, Ruslan Zakirov <span dir="ltr"><<a href="mailto:ruz@bestpractical.com" target="_blank">ruz@bestpractical.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Show your config options for the extension and version.</div>
</div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Tue, Sep 10, 2013 at 9:42 AM, Rob Chanter <span dir="ltr"><<a href="mailto:rchanter@gmail.com" target="_blank">rchanter@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi list,<div><br></div><div>I've installed the RT::Extension::PriorityAsString extension into RT4.04 on Ubuntu 12.04 LTS. It does, as advertised, display priorities as strings, but also seems to make an unwanted change to the Edit Queue page.</div>


<div><br></div><div>Before installing the extension, I get a normal input field into which I can type a number for starting and final priority:</div><div><pre><<span>tr</span>><<span>td</span> <span>align</span>="<a>right</a>">Priority starts at:</<span>td</span>>
<span></span><<span>td</span>><<span>input</span> <span>name</span>="<a>InitialPriority</a>" <span>value</span>="<a>17</a>" <span>size</span>="<a>5</a>" />
<span></span></<span>td</span>>
<span></span><<span>td</span> <span>align</span>="<a>right</a>">Over time, priority moves toward:</<span>td</span>>
<span></span><<span>td</span>><<span>input</span> <span>name</span>="<a>FinalPriority</a>" <span>value</span>="<a>22</a>" <span>size</span>="<a>5</a>" />
<span></span><<span>br</span> /><<span>span</span>><<span>em</span>>requires running rt-crontool</<span>em</span>></<span>span</span>></<span>td</span>>
<span></span></<span>tr</span>></pre><pre><span style="font-family:arial;white-space:normal">After installing/configuring the extension, this is replaced by an option list containing one entry, which looks like an arrayref.:</span><br>


</pre><pre><<span>tr</span>><<span>td</span> <span>align</span>="<a>right</a>">Priority starts at:</<span>td</span>>
<span></span><<span>td</span>><<span>select</span> <span>class</span>="<a>select-priority</a>" <span>name</span>="<a>InitialPriority</a>">
<span></span><<span>option</span> <span>class</span>="<a>array<span>&#40;</span>0x27250880<span>&#41;</span></a>" <span>value</span>="<a></a>" >ARRAY<span>&#40;</span>0x27250880<span>&#41;</span></<span>option</span>>
<span></span></<span>select</span>>
<span></span></<span>td</span>>
<span></span><<span>td</span> <span>align</span>="<a>right</a>">Over time, priority moves toward:</<span>td</span>>
<span></span><<span>td</span>><<span>select</span> <span>class</span>="<a>select-priority</a>" <span>name</span>="<a>FinalPriority</a>">
<span></span><<span>option</span> <span>class</span>="<a>array<span>&#40;</span>0x27250880<span>&#41;</span></a>" <span>value</span>="<a></a>" >ARRAY<span>&#40;</span>0x27250880<span>&#41;</span></<span>option</span>>
<span></span></<span>select</span>>
<span></span><<span>br</span> /><<span>span</span>><<span>em</span>>requires running rt-crontool</<span>em</span>></<span>span</span>></<span>td</span>>
<span></span></<span>tr</span>></pre><pre><span style="font-family:arial;white-space:normal">I would guess the extension has a misplaced '@' where there should be a '$'. </span><span style="font-family:arial,helvetica,sans-serif">Perl version is 5.14.2.</span></pre>


<pre><font face="arial, helvetica, sans-serif">This prevents me setting the priorities in new or existing queues. Any ideas on how to resolve it?</font></pre><pre><span style="font-family:arial,helvetica,sans-serif">TIA,</span><br>


</pre><pre><font face="arial, helvetica, sans-serif">rob</font></pre></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class=""><font color="#888888">-- <br>Best regards, Ruslan.
</font></span></div>
</blockquote></div><br></div></div>