From: Anders Kaseorg Date: Sun, 16 May 2010 01:13:53 +0000 (-0400) Subject: rt/zephyr-scrip.pl: Display the correct ticket for merge notifications. X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/commitdiff_plain/efbc574255759e74aa39d82e6dead82e8f0b52ce rt/zephyr-scrip.pl: Display the correct ticket for merge notifications. Signed-off-by: Anders Kaseorg --- diff --git a/rt/zephyr-scrip.pl b/rt/zephyr-scrip.pl index 5f84e5f..15f797b 100644 --- a/rt/zephyr-scrip.pl +++ b/rt/zephyr-scrip.pl @@ -45,9 +45,9 @@ local $SIG{__DIE__} = sub { send_notice "${instance_prefix}error", "Internal error in Zephyr scrip:\n$err"; }; -(my $id = $self->TicketObj->id) =~ s/@/@@/g; +(my $id = $self->TransactionObj->Ticket) =~ s/@/@@/g; (my $description = $self->TransactionObj->Description) =~ s/@/@@/g; -(my $subject = $self->TicketObj->Subject) =~ s/@/@@/g; +(my $subject = $self->TransactionObj->TicketObj->Subject) =~ s/@/@@/g; send_notice "$instance_prefix$id", $description, $subject; 1;