[Rt-commit] r19450 - rt/3.999/trunk/lib/RT/Model
sartak at bestpractical.com
sartak at bestpractical.com
Tue May 5 14:43:07 EDT 2009
Author: sartak
Date: Tue May 5 14:43:06 2009
New Revision: 19450
Modified:
rt/3.999/trunk/lib/RT/Model/Ticket.pm
Log:
Warn if the ticket being DESTROYed cannot be loaded
Modified: rt/3.999/trunk/lib/RT/Model/Ticket.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/Model/Ticket.pm (original)
+++ rt/3.999/trunk/lib/RT/Model/Ticket.pm Tue May 5 14:43:06 2009
@@ -2201,7 +2201,8 @@
return unless @$batch;
my $ticket = RT::Model::Ticket->new( current_user => RT::CurrentUser->superuser );
- $ticket->load( $self->id );
+ my ($ok, $msg) = $ticket->load( $self->id );
+ warn "Unable to load ticket #" . $self->id . " for batch processing: " . $msg if !$ok;
# Entry point of the rule system
my $rules = RT::Ruleset->find_all_rules(
More information about the Rt-commit
mailing list