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

sartak at bestpractical.com sartak at bestpractical.com
Tue Sep 1 11:00:44 EDT 2009


The branch, create-action has been updated
       via  16c449134905f2acd3146eb064b221fd0a4bc44c (commit)
      from  d2aa4afa7e9161420f688638914196cf61c56cd5 (commit)

Summary of changes:
 share/html/Ticket/Elements/ShowQueue |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 16c449134905f2acd3146eb064b221fd0a4bc44c
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Sep 1 11:00:32 2009 -0400

    Let ShowQueue take an id or name

diff --git a/share/html/Ticket/Elements/ShowQueue b/share/html/Ticket/Elements/ShowQueue
index 1ddce58..731ebfe 100644
--- a/share/html/Ticket/Elements/ShowQueue
+++ b/share/html/Ticket/Elements/ShowQueue
@@ -48,7 +48,16 @@
 
 <% $queue_obj->name %>
 <%ARGS>
-$queue_obj
+$queue_obj => undef
+$queue => undef
 </%ARGS>
 <%INIT>
+if (!$queue_obj) {
+    if (!$queue) {
+        die "Neither queue nor queue_obj specified for ShowQueue";
+    }
+
+    $queue_obj = RT::Model::Queue->new;
+    $queue_obj->load($queue);
+}
 </%INIT>

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


More information about the Rt-commit mailing list