RT# 82010 Fix bug where selfservice payment form may not appear
authorMitch Jackson <mitch@freeside.biz>
Mon, 28 Jan 2019 08:22:17 +0000 (03:22 -0500)
committerMitch Jackson <mitch@freeside.biz>
Mon, 28 Jan 2019 08:35:27 +0000 (03:35 -0500)
fs_selfservice/FS-SelfService/cgi/change_pay.html

index 9ed621f..2e14151 100644 (file)
@@ -61,6 +61,9 @@
   delete $options{'DCRD'} unless $payby eq 'DCRD' || ! exists $options{'CARD'};
   delete $options{'DCHK'} unless $payby eq 'DCHK' || ! exists $options{'CHEK'};
 
+  $payby = (keys %options)[0]
+    if !$payby && %options;
+
   HTML::Widgets::SelectLayers->new(
     options => \%options,
     selected_layer => $payby,