Skip to content

Instantly share code, notes, and snippets.

@clkao
Created July 27, 2010 12:48
Show Gist options
  • Save clkao/492173 to your computer and use it in GitHub Desktop.
Save clkao/492173 to your computer and use it in GitHub Desktop.
diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm
index 7e5f975..ad2a6a3 100755
--- a/lib/RT/Interface/Web.pm
+++ b/lib/RT/Interface/Web.pm
@@ -1521,6 +1521,8 @@ sub ProcessTicketBasics {
my $TicketObj = $args{'TicketObj'};
my $ARGSRef = $args{'ARGSRef'};
+ my $OrigOwner = $TicketObj->Owner;
+
# {{{ Set basic fields
my @attribs = qw(
Subject
@@ -1553,7 +1555,7 @@ sub ProcessTicketBasics {
);
# We special case owner changing, so we can use ForceOwnerChange
- if ( $ARGSRef->{'Owner'} && ( $TicketObj->Owner != $ARGSRef->{'Owner'} ) ) {
+ if ( $ARGSRef->{'Owner'} && ( $OrigOwner != $ARGSRef->{'Owner'} ) ) {
my ($ChownType);
if ( $ARGSRef->{'ForceOwnerChange'} ) {
$ChownType = "Force";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment