<div dir="ltr">On Thu, May 9, 2013 at 6:58 PM, Darin Perusich <span dir="ltr"><<a href="mailto:darin@darins.net" target="_blank">darin@darins.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<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">Hello All,<br>
<br>
I'm attempting to update the RTx::Tags extension,<br>
<a href="http://search.cpan.org/dist/RTx-Tags" target="_blank">http://search.cpan.org/dist/RTx-Tags</a>, to support RT4 since the<br>
maintainer's no longer using RT and I think it'll be a useful plugin.<br>
This is my first crack at something like this so bare with me.<br>
<br>
In a post about this extension from last year a comment was made that<br>
it's " building the status list in the old 3.8 way rather than using<br>
the RT::Queue->ActiveStatusArray". What exactly does this mean?<br></blockquote><div><br></div><div style>This means that ActiveStatusArray method [1] of RT::Queue object should be used to get list of statuses in a queue.</div>
<div style><br></div><div style>If you need all possible active statuses then you should use methods in RT::Lifecycle module [2].</div><div style><br></div><div style>[1] <a href="http://bestpractical.com/rt/docs/latest/RT/Queue.html#ActiveStatusArray">http://bestpractical.com/rt/docs/latest/RT/Queue.html#ActiveStatusArray</a></div>
<div style>[2] <a href="http://bestpractical.com/rt/docs/latest/RT/Lifecycle.html#List">http://bestpractical.com/rt/docs/latest/RT/Lifecycle.html#List</a></div><div> </div><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">

The extension is also building a select to query the database, see<br>
<a href="http://cpansearch.perl.org/src/JPIERCE/RTx-Tags-0.25/lib/RTx/Tags.pm" target="_blank">http://cpansearch.perl.org/src/JPIERCE/RTx-Tags-0.25/lib/RTx/Tags.pm</a>.<br>
Is this the best way to do this or should one of the RT::Search<br>
modules be employed?<br></blockquote><div><br></div><div style>AFAICS this code will work with 4.0 without problems. You should concentrate on UI first as most probably to port extension over 4.0 you just need to change how it puts links into menus.</div>
<div> </div><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">
<br>
<a href="http://lists.bestpractical.com/pipermail/rt-users/2012-March/075452.html" target="_blank">http://lists.bestpractical.com/pipermail/rt-users/2012-March/075452.html</a><br>
<a href="https://rt.cpan.org/Public/Bug/Display.html?id=75647" target="_blank">https://rt.cpan.org/Public/Bug/Display.html?id=75647</a><br>
<br></blockquote><div style>In the mentioned query you have the following part:</div><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><i>"Tickets.Status IN()"</i></pre></div><div style>Above is not valid SQL. However, it's obvious that empty "IN" list means that extension just is not able to get list of statuses.</div>
<div> </div><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">
Thanks!<br>
--<br>
Later,<br>
Darin<br>
<span class=""><font color="#888888"><br>
<br>
--<br>
RT Training in Seattle, June 19-20: <a href="http://bestpractical.com/training" target="_blank">http://bestpractical.com/training</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards, Ruslan.
</div></div>