[Rt-commit] rt branch, 4.6/priority-as-string, repushed
Craig Kaiser
craig at bestpractical.com
Mon Dec 31 10:02:18 EST 2018
The branch 4.6/priority-as-string was deleted and repushed:
was 638373ff9351ee99f53542ff580923276e110dbb
now 2a57dbd96c7835f9530cbd54239a555fc420cdb5
1: 638373ff93 ! 1: 2a57dbd96c Core RT::Extension::PriorityAsString
@@ -146,9 +146,11 @@
+
+ # Count from high down to low until we find one that our number is
+ # greater than or equal to.
-+ foreach my $label ( sort { $map{$b} <=> $map{$a} } keys %map ) {
-+ return $label if $priority >= $map{ $label };
-+ };
++ if ( values %map ) {
++ foreach my $label ( sort { $map{$b} <=> $map{$a} } keys %map ) {
++ return $label if $priority >= $map{ $label };
++ };
++ }
+ return "unknown";
+}
+
@@ -185,7 +187,7 @@
+
+ my $method = $field .'AsString';
+
-+ my %queues = RT->Config->Get('PriorityAsStringQueues') || ();
++ my %queues = RT->Config->Get('PriorityAsStringQueues');
+ if (not keys %queues) {
+ $COLUMN_MAP->{ $field }{'value'} = sub {
+ return $printer->( $class, $_[0]->$method() );
More information about the rt-commit
mailing list