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

sartak at bestpractical.com sartak at bestpractical.com
Tue Sep 29 16:56:53 EDT 2009


The branch, create-action has been updated
       via  a582133274322f958131346d6d77c3c94105b63e (commit)
      from  72a34c5c4c6ca3ec18309014c53862ce5fb3259d (commit)

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

- Log -----------------------------------------------------------------
commit a582133274322f958131346d6d77c3c94105b63e
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Sep 29 16:56:41 2009 -0400

    valid_values needs to be an arrayref

diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index b867cf8..2aa2aa7 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -217,11 +217,11 @@ sub _add_custom_fields {
         );
 
         if ($render_as =~ /Select/i) {
-            $args{valid_values} = {
+            $args{valid_values} = [ {
                 collection   => $cf->values,
                 display_from => 'name',
                 value_from   => 'name',
-            };
+            } ];
         }
 
         $self->$method(

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


More information about the Rt-commit mailing list