paymentMethod should be lower case.

This commit is contained in:
Bradley M. Kuhn 2018-07-25 13:57:27 -07:00
parent 34e00ca5f0
commit 5e0433d39b

View file

@ -32,7 +32,7 @@ sub FindMostRecentPaymentMethodForTicket ($) {
open(my $rtShowFH, "-|", "$RT_CMD", "show", $ticketSpec);
while (my $showLine = <$rtShowFH>) {
print STDERR "rt show line for $ticketSpec: $showLine" if ($VERBOSE >= 10);
$paymentMethod = $1
$paymentMethod = lc($1)
if ($showLine =~ /^\s*PAYMENT\s+METHOD\s*:\s*(.*?)\s*$/);
# don't 'last' when found as we want the last one.
}