[Rt-commit] r14113 - in rt/branches/3.999-DANGEROUS: lib/RT

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Jul 15 09:22:28 EDT 2008


Author: sunnavy
Date: Tue Jul 15 09:22:27 2008
New Revision: 14113

Modified:
   rt/branches/3.999-DANGEROUS/   (props changed)
   rt/branches/3.999-DANGEROUS/lib/RT/SavedSearches.pm

Log:
 r14488 at sunnavys-mb:  sunnavy | 2008-07-15 17:34:52 +0800
 ad hoc fix for the maybe cache bug stuff: deleted stuff is still in user object


Modified: rt/branches/3.999-DANGEROUS/lib/RT/SavedSearches.pm
==============================================================================
--- rt/branches/3.999-DANGEROUS/lib/RT/SavedSearches.pm	(original)
+++ rt/branches/3.999-DANGEROUS/lib/RT/SavedSearches.pm	Tue Jul 15 09:22:27 2008
@@ -108,6 +108,10 @@
             my $search = RT::SavedSearch->new;
             $search->load( $privacy, $att->id );
 
+#           XXX TODO get rid of already deleted ones
+#           I think it's because of a cache bug
+            next unless $search->id; 
+
             next if $type && $search->type ne $type;
             push( @{ $self->{'objects'} }, $search );
         }


More information about the Rt-commit mailing list