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

sartak at bestpractical.com sartak at bestpractical.com
Wed Oct 7 14:57:10 EDT 2009


The branch, create-action has been updated
       via  94834487bbaafcc97fea1bc6c1cb32ff8b7053de (commit)
      from  b9a1e558213949c3c0774c72d2ed25f6025d3bef (commit)

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

- Log -----------------------------------------------------------------
commit 94834487bbaafcc97fea1bc6c1cb32ff8b7053de
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Oct 7 14:56:55 2009 -0400

    Field wants just user IDs, not id/name

diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index 248f90c..92ffcbb 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -172,12 +172,7 @@ sub set_valid_owners {
                        values %user_uniq_hash;
     unshift @valid_owners, RT->nobody;
 
-    $self->fill_parameter(owner => valid_values => [
-        map { {
-            display => $_->name, # XXX: should use ShowUser or something
-            value   => $_->id,
-        } } @valid_owners,
-    ]);
+    $self->fill_parameter(owner => valid_values => [ map { $_->id } @valid_owners ]);
 }
 
 sub set_initial_priority {

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


More information about the Rt-commit mailing list