X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FShredder%2FDependencies.pm;h=c5368c59fa192cf1afb53880755021bb5ca23fcd;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hp=753364f2c7d3122b39825e64593491df9d9aa25e;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941;p=freeside.git diff --git a/rt/lib/RT/Shredder/Dependencies.pm b/rt/lib/RT/Shredder/Dependencies.pm index 753364f2c..c5368c59f 100644 --- a/rt/lib/RT/Shredder/Dependencies.pm +++ b/rt/lib/RT/Shredder/Dependencies.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -49,6 +49,7 @@ package RT::Shredder::Dependencies; use strict; +use warnings; use RT::Shredder::Exceptions; use RT::Shredder::Constants; use RT::Shredder::Dependency; @@ -106,7 +107,7 @@ sub _PushDependency @_ ); my $rec = $args{'Shredder'}->PutObject( Object => $args{'TargetObject'} ); - return if $rec->{'State'} & WIPED; # there is no object anymore + return if $rec->{'State'} & RT::Shredder::Constants::WIPED; # there is no object anymore push @{ $self->{'list'} }, RT::Shredder::Dependency->new(