[Bps-public-commit] rt-extension-mobileui branch, master, updated. 1.00-5-ga6fdc37

Kevin Falcone falcone at bestpractical.com
Mon Mar 21 16:11:37 EDT 2011


The branch, master has been updated
       via  a6fdc3700788d0eb51382af4146484870fa7f3ca (commit)
      from  bbd1fc241638715abdea2cfc8212520230bec927 (commit)

Summary of changes:
 html/m/_elements/menu |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit a6fdc3700788d0eb51382af4146484870fa7f3ca
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Mon Mar 21 16:10:57 2011 -0400

    Older version of RT didn't always set a SearchType
    
    We don't currently have an upgrading script for this and a ton of RT's
    code code works around this by defaulting to an empty SearchType meaning
    that it is a Ticket search.

diff --git a/html/m/_elements/menu b/html/m/_elements/menu
index e13c1c7..f9d65cb 100644
--- a/html/m/_elements/menu
+++ b/html/m/_elements/menu
@@ -52,7 +52,7 @@ if ( $session{'CurrentUser'}->HasRight( Right  => 'LoadSavedSearch', Object => $
         foreach my $object (@Objects) {
             my @searches = $object->Attributes->Named('SavedSearch');
             foreach my $search (@searches) {
-                next unless $search->SubValue("SearchType") eq 'Ticket';
+                next if $search->SubValue("SearchType") && $search->SubValue("SearchType") ne 'Ticket';
                 push @menu, { label => $search->Description, url => '/m/tickets/search?query=' . $search->SubValue("Query").'&order='.$search->SubValue("Order").'&order_by='.$search->SubValue("OrderBy") };
 
             }

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list