Proposed patch: __DefaultQueue__ in Tickets_SQL

I am fond of DefaultUser_ in Tickets SQL, and I would appreciate a
similar DefaultQueue, to view tickets in the queue which is the
default in the logged user’s preferences, or the system default.

This is the patch, works for me, relative to 4.0.8:

*** lib/RT/Tickets_SQL.pm.orig 2012-12-13 18:40:29.445181772 +0100
— lib/RT/Tickets_SQL.pm 2012-12-13 18:41:02.069182241 +0100
*** 202,207 ****
— 202,214 ----
# replace CurrentUser with id
$value = $self->CurrentUser->id if $value eq ‘CurrentUser’;

  •     # replace __DefaultQueue__ with its id
    
  •     if ($value eq '__DefaultQueue__'){
    
  •       my $queue = RT::Queue->new($self->CurrentUser );
    
  •       $queue->Load($RT::Config->Get("DefaultQueue", 
    

$self->CurrentUser));

  •       $value = $queue->id;
    
  •     }
    
         unless( $dispatch{ $class } ) {
             die "No dispatch method for class '$class'"
    

Ing. Michele Bergonzoni - Laboratori Guglielmo Marconi S.p.a.
Phone:+39-051-6781926 e-mail: bergonz@labs.it
alt.advanced.networks.design.configure.operate

Hi,

I like it. If you have cycles to create proper pull request or git
patch then it expedite inclusion. If you don’t then create a ticket on
http://issues.bestpractical.com and we will get to it at some point.On Thu, Dec 13, 2012 at 9:41 PM, Michele Bergonzoni bergonz@labs.it wrote:

I am fond of DefaultUser_ in Tickets SQL, and I would appreciate a
similar DefaultQueue, to view tickets in the queue which is the default
in the logged user’s preferences, or the system default.

This is the patch, works for me, relative to 4.0.8:

*** lib/RT/Tickets_SQL.pm.orig 2012-12-13 18:40:29.445181772 +0100
— lib/RT/Tickets_SQL.pm 2012-12-13 18:41:02.069182241 +0100


*** 202,207 ****
— 202,214 ----
# replace CurrentUser with id
$value = $self->CurrentUser->id if $value eq ‘CurrentUser’;

  •     # replace __DefaultQueue__ with its id
    
  •     if ($value eq '__DefaultQueue__'){
    
  •       my $queue = RT::Queue->new($self->CurrentUser );
    
  •       $queue->Load($RT::Config->Get("DefaultQueue",
    

$self->CurrentUser));

  •       $value = $queue->id;
    
  •     }
    
      unless( $dispatch{ $class } ) {
          die "No dispatch method for class '$class'"


Ing. Michele Bergonzoni - Laboratori Guglielmo Marconi S.p.a.
Phone:+39-051-6781926 e-mail: bergonz@labs.it
alt.advanced.networks.design.configure.operate

We’re hiring! Careers — Best Practical Solutions

Best regards, Ruslan.