On Tue, Mar 15, 2011 at 03:01:57PM +0100, Gerard FENELON wrote:
> Hi Kevin
> 
> we started with 3.4.6in 2004
> moved to 3.6.10 in December 2009
> moved to 3.8.8 in December 2010
> 
> I suspect those searches are old, maybe before the move to 3.6.10

My guess was going to be that you came up from 3.4, so that ties in
nicely.

> I don't have a patch to submit.
> For the moment I just changed
> opt/rt3/local/plugins/RT-Extension-MobileUI/html/m/_elements/menu
> from
>     foreach my $search (@searches) {
>         next unless $search->SubValue("SearchType") eq 'Ticket';
> 
> to
>     foreach my $search (@searches) {
>         $RT::Logger->info( "SavedSearched '" . $search->Description,
> "'  'SearchType' : '" . $search->SubValue("SearchType") . "'" );
>         next unless $search->SubValue("SearchType") eq 'Ticket';

Does changing that to something like:

         next if $search->SubValue("SearchType") && 
$search->SubValue("SearchType") ne 'Ticket';

also work?

> I found a workaround : renaming the Searches.
> Just resaving the Search without changing its name does not seem to
> be enough.

Does changing an attribute of the search work?  I didn't want to
suggest resaving because I wasn't sure it would work.

-kevin

Attachment: pgpslZMupzYhL.pgp
Description: PGP signature

Reply via email to