[Bps-public-commit] RT-Extension-SLA branch, performance-stats, updated. 0.05-37-g843ec8a

Kevin Falcone falcone at bestpractical.com
Sat Jun 30 00:17:47 EDT 2012


The branch, performance-stats has been updated
       via  843ec8ab39770e3d0905adb329502748d5b5b35b (commit)
      from  8bd55be3d8e07e9cc11d095a202bc5c77599ac0c (commit)

Summary of changes:
 lib/RT/Extension/SLA/Report.pm |    7 +++++++
 1 file changed, 7 insertions(+)

- Log -----------------------------------------------------------------
commit 843ec8ab39770e3d0905adb329502748d5b5b35b
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Sat Jun 30 00:15:57 2012 -0400

    There was code to handle owner changes, but no method
    
    This stubs in some code to swap the internal Owner, so you can tell if a
    correspondence was from the owner.

diff --git a/lib/RT/Extension/SLA/Report.pm b/lib/RT/Extension/SLA/Report.pm
index f15ea7a..d69bfe9 100644
--- a/lib/RT/Extension/SLA/Report.pm
+++ b/lib/RT/Extension/SLA/Report.pm
@@ -108,6 +108,13 @@ sub OnRequestorChange {
     }
 }
 
+sub OnOwnerChange {
+    my $self = shift;
+    my %args = ( Ticket => undef, Transaction => undef, @_);
+
+    $self->State->{'owner'} = $args{'Transaction'}->NewValue;
+}
+
 sub OnServiceLevelChange {
     my $self = shift;
     my %args = ( Transaction => undef, @_);

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list