[Rt-commit] rt branch, 4.2/admin-scrip-queue, created. rt-4.2.1-43-gd9c1d3a

Alex Vandiver alexmv at bestpractical.com
Mon Dec 2 11:39:01 EST 2013


The branch, 4.2/admin-scrip-queue has been created
        at  d9c1d3a035d8c199da979c1812d37555b76a9036 (commit)

- Log -----------------------------------------------------------------
commit d9c1d3a035d8c199da979c1812d37555b76a9036
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Dec 2 11:38:57 2013 -0500

    Correct old "Queue" and "QueueId" columns which still assumed scrips applied to 1 or all queues

diff --git a/share/html/Elements/RT__Scrip/ColumnMap b/share/html/Elements/RT__Scrip/ColumnMap
index 7964ded..a1f59e7 100644
--- a/share/html/Elements/RT__Scrip/ColumnMap
+++ b/share/html/Elements/RT__Scrip/ColumnMap
@@ -55,13 +55,15 @@ my $COLUMN_MAP = {
     Queue => {
         title     => 'Queue', # loc
         value     => sub {
-            return $_[0]->QueueObj->Name if $_[0]->Queue;
-            return $_[0]->loc('Global');
+            return $_[0]->loc('Global') if $_[0]->IsGlobal;
+            return join(", ", map {$_->Name} @{$_[0]->AddedTo->ItemsArrayRef});
         },
     },
     QueueId => {
         title     => 'Queue', # loc
-        value     => sub { $_[0]->Queue },
+        value     => sub {
+            return join(", ", map {$_->Id} @{$_[0]->AddedTo->ItemsArrayRef});
+        },
     },
     Condition => {
         title     => 'Condition', # loc

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


More information about the rt-commit mailing list