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

sartak at bestpractical.com sartak at bestpractical.com
Wed Sep 2 10:46:52 EDT 2009


The branch, create-action has been updated
       via  c8249509159e43f002622450209cce85cfde75d9 (commit)
      from  def4174dc3450c55df2fa6f01f3ad6004e4c263d (commit)

Summary of changes:
 lib/RT/View/Ticket/Create.pm |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit c8249509159e43f002622450209cce85cfde75d9
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Wed Sep 2 10:46:38 2009 -0400

    We need to put the value of queue into the request

diff --git a/lib/RT/View/Ticket/Create.pm b/lib/RT/View/Ticket/Create.pm
index 07d7dac..e3050e0 100644
--- a/lib/RT/View/Ticket/Create.pm
+++ b/lib/RT/View/Ticket/Create.pm
@@ -98,6 +98,12 @@ sub show_basics {
         a { attr { name => "basics" } };
 
         render_param($create, 'queue');
+
+        # Jifty should do this for us when we render a read-only parameter
+        # The only worry is that the user does what we're doing here so that
+        # the parameter is now an arrayref instead of a plain scalar
+        render_hidden($create, 'queue', $queue);
+
         render_param($create, 'status');
 
         $create->button(label => _('Create'));

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


More information about the Rt-commit mailing list