[rt-users] RT-Extension-MobileUI : Not all Saved Searches are shown on Home page

Kevin Falcone falcone at bestpractical.com
Tue Mar 15 10:26:48 EDT 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110315/23df8747/attachment.sig>


More information about the rt-users mailing list