[Rt-commit] rt branch, 4.0/do-not-load-object-of-value-zero, created. rt-4.0.12-31-g163a5ed
? sunnavy
sunnavy at bestpractical.com
Sun May 19 12:38:28 EDT 2013
The branch, 4.0/do-not-load-object-of-value-zero has been created
at 163a5ed58573e4e5da421342f66fdbabb1ec2506 (commit)
- Log -----------------------------------------------------------------
commit 163a5ed58573e4e5da421342f66fdbabb1ec2506
Author: sunnavy <sunnavy at bestpractical.com>
Date: Mon May 20 00:04:53 2013 +0800
no need to load object with id of value 0
so we won't get warnings of "Couldn't load object RT::Transaction #0" when
updating tickets with txn cfs
diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index dce1117..0a45702 100644
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -2676,6 +2676,7 @@ sub ProcessObjectCustomFieldUpdates {
# For each of those objects
foreach my $class ( keys %custom_fields_to_mod ) {
foreach my $id ( keys %{ $custom_fields_to_mod{$class} } ) {
+ next unless $id;
my $Object = $args{'Object'};
$Object = $class->new( $session{'CurrentUser'} )
unless $Object && ref $Object eq $class;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list