[Rt-commit] rt branch, 4.6/priority-as-string, updated. rt-4.4.4-568-g5e3aeaea99
Michel Rodriguez
michel at bestpractical.com
Wed Jan 8 10:32:10 EST 2020
The branch, 4.6/priority-as-string has been updated
via 5e3aeaea99e067418783385884bf54fa0489d723 (commit)
from b420bf72ebbc4ed778f207bcf7f39f2749975c68 (commit)
Summary of changes:
share/html/Elements/RT__Ticket/ColumnMap | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
- Log -----------------------------------------------------------------
commit 5e3aeaea99e067418783385884bf54fa0489d723
Author: michel <michel at bestpractical.com>
Date: Wed Jan 8 09:25:54 2020 -0500
Fix display of priority for queues using the default mapping
diff --git a/share/html/Elements/RT__Ticket/ColumnMap b/share/html/Elements/RT__Ticket/ColumnMap
index c949a6a565..3929e23eff 100644
--- a/share/html/Elements/RT__Ticket/ColumnMap
+++ b/share/html/Elements/RT__Ticket/ColumnMap
@@ -386,17 +386,8 @@ foreach my $field ( qw( Priority InitialPriority FinalPriority ) ) {
$class =~ s/(?=<.)(?=priority)/-/;
my $method = $field . 'AsString';
-
- if ( not keys %$queues ) {
- $COLUMN_MAP->{ $field }{'value'} = sub {
+ $COLUMN_MAP->{ $field }{'value'} = sub {
return $printer->( $class, $_[0]->$method() );
- };
- } else {
- $COLUMN_MAP->{ $field }{'value'} = sub {
- return $queues->{$_[0]->QueueObj->Name}
- ? $printer->( $class, $_[0]->$method() )
- : $_[0]->$field;
- };
}
}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list