[Rt-commit] rt branch, 4.0/more-about-requestor-ticket-list-default-tab, created. rt-4.0.23-26-gb833421
? sunnavy
sunnavy at bestpractical.com
Mon Aug 17 08:46:25 EDT 2015
The branch, 4.0/more-about-requestor-ticket-list-default-tab has been created
at b833421f783c8485184b9ddb6a87cea9a1345aa0 (commit)
- Log -----------------------------------------------------------------
commit b833421f783c8485184b9ddb6a87cea9a1345aa0
Author: sunnavy <sunnavy at bestpractical.com>
Date: Mon Aug 17 20:38:51 2015 +0800
fix operator precedence because "&&" binds tighter than "="
diff --git a/share/html/Ticket/Elements/ShowRequestor b/share/html/Ticket/Elements/ShowRequestor
index cfa079f..a8b9f89 100644
--- a/share/html/Ticket/Elements/ShowRequestor
+++ b/share/html/Ticket/Elements/ShowRequestor
@@ -169,8 +169,10 @@ $m->callback( CallbackName => 'AddStatus', status_link_text => \$status_link_tex
unless ( $DefaultTicketsTab eq 'None' ) {
for (0 .. (@$status_order - 1)) {
- $selected = $_ && last
- if $status_order->[$_] eq $DefaultTicketsTab;
+ if ( $status_order->[$_] eq $DefaultTicketsTab ) {
+ $selected = $_;
+ last;
+ }
}
}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list