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

sartak at bestpractical.com sartak at bestpractical.com
Tue Sep 29 16:58:13 EDT 2009


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

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

- Log -----------------------------------------------------------------
commit f75cdb1debf79ec6dedae0161d8731340c20b75d
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Sep 29 16:58:06 2009 -0400

    Combobox has available_values

diff --git a/lib/RT/Action/CreateTicket.pm b/lib/RT/Action/CreateTicket.pm
index 2aa2aa7..d16216b 100644
--- a/lib/RT/Action/CreateTicket.pm
+++ b/lib/RT/Action/CreateTicket.pm
@@ -223,6 +223,13 @@ sub _add_custom_fields {
                 value_from   => 'name',
             } ];
         }
+        elsif ($render_as =~ /Combobox/i) {
+            $args{available_values} = [ {
+                collection   => $cf->values,
+                display_from => 'name',
+                value_from   => 'name',
+            } ];
+        }
 
         $self->$method(
             %args,

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


More information about the Rt-commit mailing list