[Rt-commit] rt branch, 3.999-trunk, updated. bc05fcc190152f08d62c9989252f370da926aea4

sartak at bestpractical.com sartak at bestpractical.com
Wed Nov 25 06:16:28 EST 2009


The branch, 3.999-trunk has been updated
       via  bc05fcc190152f08d62c9989252f370da926aea4 (commit)
      from  d31dde1ada7f50b0354668c56eb81352e80c266b (commit)

Summary of changes:
 lib/RT/Action/CreateTicket.pm |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit bc05fcc190152f08d62c9989252f370da926aea4
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Nov 25 06:15:51 2009 -0500

    Add a parameter for sign_using if the user has a key

diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index 7d9253a..8e432aa 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -187,6 +187,15 @@ sub setup_gnupg {
         default_value => $queue->sign,
     ));
 
+    if (my $user_key = $self->current_user->user_object->private_key) {
+        $self->fill_parameter(sign_using => (
+            valid_values => [
+                { name => '', display => _("Queue's key") },
+                "$user_key",
+            ],
+        ));
+    }
+
     $self->fill_parameter(encrypt => (
         render_as     => 'checkbox',
         default_value => $queue->encrypt,

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


More information about the Rt-commit mailing list