[Rt-commit] r7855 - in rt/branches/3.6-RELEASE: .

falcone at bestpractical.com falcone at bestpractical.com
Mon May 14 11:35:46 EDT 2007


Author: falcone
Date: Mon May 14 11:35:45 2007
New Revision: 7855

Modified:
   rt/branches/3.6-RELEASE/   (props changed)
   rt/branches/3.6-RELEASE/html/Search/Build.html

Log:
 r18561 at ketch:  falcone | 2007-05-11 14:19:35 -0400
 * don't parse undef for SQL (quiets a warning on new searches)


Modified: rt/branches/3.6-RELEASE/html/Search/Build.html
==============================================================================
--- rt/branches/3.6-RELEASE/html/Search/Build.html	(original)
+++ rt/branches/3.6-RELEASE/html/Search/Build.html	Mon May 14 11:35:45 2007
@@ -331,6 +331,10 @@
     my $root       = RT::Interface::Web::QueryBuilder::Tree->new( 'AND', $$tree );
     my $parentnode = $root;
 
+    # on new searches, we're passed undef but still need to construct the
+    # RT::Interface::Web::QueryBuilder::Tree.  Quiet warning
+    return unless defined $string;
+
     # get the FIELDS from Tickets_Overlay
     my $tickets = new RT::Tickets( $session{'CurrentUser'} );
     my %FIELDS  = %{ $tickets->FIELDS };


More information about the Rt-commit mailing list