[Rt-commit] r4403 - in rt/branches/QUEBEC-EXPERIMENTAL: .
alexmv at bestpractical.com
alexmv at bestpractical.com
Thu Jan 19 00:10:28 EST 2006
Author: alexmv
Date: Thu Jan 19 00:10:27 2006
New Revision: 4403
Modified:
rt/branches/QUEBEC-EXPERIMENTAL/ (props changed)
rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Action/CreateTickets.pm
Log:
r8693 at zoq-fot-pik: chmrr | 2006-01-19 00:09:49 -0500
* ForceOwner to force ownership
Modified: rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Action/CreateTickets.pm
==============================================================================
--- rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Action/CreateTickets.pm (original)
+++ rt/branches/QUEBEC-EXPERIMENTAL/lib/RT/Action/CreateTickets.pm Thu Jan 19 00:10:27 2006
@@ -189,6 +189,8 @@
Resolved =>
Owner => Username or id of an RT user who can and should own
this ticket
+ ForceOwner => Same as Owner, but sets the owner even if the owner
+ is already set
+ Requestor => Email address
+ Cc => Email address
+ AdminCc => Email address
@@ -705,6 +707,12 @@
ARGSRef => $ticketargs
);
+ if ( $ticketargs->{'ForceOwner'} ) {
+ warn "Force user";
+ ($id, $msg) = $T::Tickets{$template_id}->SetOwner($ticketargs->{'ForceOwner'}, "Force");
+ push @results, $msg;
+ }
+
push @results,
$self->UpdateWatchers( $T::Tickets{$template_id}, $ticketargs );
@@ -968,7 +976,8 @@
Starts => $args{'starts'},
Started => $args{'started'},
Resolved => $args{'resolved'},
- Owner => $args{'owner'},
+ Owner => $args{'forceowner'} || $args{'owner'},
+ ForceOwner => $args{'forceowner'},
Requestor => $args{'requestor'},
Cc => $args{'cc'},
AdminCc => $args{'admincc'},
More information about the Rt-commit
mailing list