[Rt-commit] rt branch, create-action, updated. ea0c32c83af83599c62ddcd7b2743006d6e2992c

sartak at bestpractical.com sartak at bestpractical.com
Thu Sep 3 08:25:34 EDT 2009


The branch, create-action has been updated
       via  ea0c32c83af83599c62ddcd7b2743006d6e2992c (commit)
      from  ab6fde25aa05257dabe306bd9f6ed94c36c5b6c9 (commit)

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

- Log -----------------------------------------------------------------
commit ea0c32c83af83599c62ddcd7b2743006d6e2992c
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Thu Sep 3 08:25:15 2009 -0400

    Display user name, and make each option's value the user id

diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index 9b8dd4b..c1712ef 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -63,7 +63,12 @@ sub set_valid_owners {
                        values %user_uniq_hash;
     unshift @valid_owners, RT->nobody;
 
-    $self->{_cached_arguments}{owner}{valid_values} = \@valid_owners;
+    $self->{_cached_arguments}{owner}{valid_values} = [
+        map { {
+            display => $_->name, # XXX: should use ShowUser or something
+            value   => $_->id,
+        } } @valid_owners,
+    ];
 }
 
 1;

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


More information about the Rt-commit mailing list