[Rt-commit] [rtir] 01/02: Make IncidentObj optional as documented

Kevin Falcone falcone at bestpractical.com
Thu Jun 20 20:05:02 EDT 2013


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 2.9-trunk
in repository rtir.

commit 706c575011ce6a093ca35455d52a0819999e7851
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Thu Jun 20 19:55:11 2013 -0400

    Make IncidentObj optional as documented
    
    When 8e5cdcb moved IsLinkedToActiveIncidents from RT::IR::Ticket to
    RT::IR it kept the documentation but rewrote the code and didn't leave
    the $parent object optional.
---
 lib/RT/IR.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/RT/IR.pm b/lib/RT/IR.pm
index b226868..62f219e 100644
--- a/lib/RT/IR.pm
+++ b/lib/RT/IR.pm
@@ -395,7 +395,7 @@ sub IsLinkedToActiveIncidents {
     $tickets->FromSQL( $self->ActiveQuery(
         Queue     => 'Incidents',
         HasMember => $child,
-        Exclude   => $parent->id,
+        ($parent ? (Exclude   => $parent->id) : ()),
     ) );
     return $tickets->Count;
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Rt-commit mailing list