[Bps-public-commit] RT-Extension-QuickCalls branch, master, updated. 0.03-1-g2139fce
Kevin Falcone
falcone at bestpractical.com
Wed Jan 13 13:05:20 EST 2010
The branch, master has been updated
via 2139fceb12addb44fbeb6e65fea7d15df19b4f47 (commit)
from 3479a0b6114f7bbc2bfc2a305dd2b6928cea2fca (commit)
Summary of changes:
README | 5 +++--
html/Elements/QuickCalls | 2 ++
2 files changed, 5 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 2139fceb12addb44fbeb6e65fea7d15df19b4f47
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Wed Jan 13 12:56:21 2010 -0500
New option to set default Owner
Contributed patch that makes the default Owner on Ticket Creation be the
current user
diff --git a/README b/README
index d315165..f5cb1da 100644
--- a/README
+++ b/README
@@ -23,7 +23,8 @@ in Preferences -> RT at a glance
To set up your Quick Calls, you will want to specify a Name and a Queue
in the config file. The Name will become the Subject of the task unless
you specify a Subject option. You can add other Ticket options as needed,
-such as Status.
+such as Status. You can also add SetOwnerToCurrentUser if you want to default
+the Owner to the current user.
Set($QuickCalls,[{Name => "Foo", Queue => 'General', Status => 'resolved'},
{Name => "Bar", Queue => 'Queue2', Status => 'resolved'}]);
@@ -34,7 +35,7 @@ fields pre-filled
COPYRIGHT AND LICENCE
-Copyright (C) 2007-2009, Best Practical Solutions LLC.
+Copyright (C) 2007-2010, Best Practical Solutions LLC.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
diff --git a/html/Elements/QuickCalls b/html/Elements/QuickCalls
index c0cfe24..c0585a7 100644
--- a/html/Elements/QuickCalls
+++ b/html/Elements/QuickCalls
@@ -65,6 +65,8 @@ if ($QuickCall) {
# copy so we don't nuke the config variable
$QuickCall = { map { $_ => $QuickCall->{$_} } keys %$QuickCall };
$QuickCall->{Subject} ||= $QuickCall->{Name};
+ $QuickCall->{Owner} = $session{CurrentUser}->Id if ($QuickCall->{SetOwnerToCurrentUser});
+ delete $QuickCall->{SetOwnerToCurrentUser};
delete $QuickCall->{Name};
my $query = $m->comp( '/Elements/QueryString', %$QuickCall);
RT::Interface::Web::Redirect($RT::WebURL."Ticket/Create.html?$query");
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list