diff options
author | ivan <ivan> | 2009-10-20 18:30:13 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-10-20 18:30:13 +0000 |
commit | 73b634da29738860b0821410f5d9c3a5b5c6228c (patch) | |
tree | 90c90eb624c7716c179e4d13f719437e41af28d9 /fs_selfservice | |
parent | ef25e3423f6b3d939f2cfb5f35150d5da8f0251d (diff) |
don't show duplicate 'Credit card' or 'Check' choices even when signup_server-payby has CARD & DCRD (or CHEK & DCHK)
Diffstat (limited to 'fs_selfservice')
-rw-r--r-- | fs_selfservice/FS-SelfService/cgi/change_pay.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/change_pay.html b/fs_selfservice/FS-SelfService/cgi/change_pay.html index e7a996931..bbe452786 100644 --- a/fs_selfservice/FS-SelfService/cgi/change_pay.html +++ b/fs_selfservice/FS-SelfService/cgi/change_pay.html @@ -46,6 +46,17 @@ $options{$payby} = $payby_index{$payby} unless exists($options{$payby}); + #don't want to show multiple "Credit card" or "Check" options + my %paybyremove = ( + 'CARD' => 'DCRD', + 'DCRD' => 'CARD', + 'CHEK' => 'DCHK', + 'DCHK' => 'CHEK', + ); + delete( $options{ $paybyremove{$payby} } ); + delete $options{'DCRD'} unless $payby eq 'DCRD' || ! exists $options{'CARD'}; + delete $options{'DCHK'} unless $payby eq 'DCHK' || ! exists $options{'CHEK'}; + HTML::Widgets::SelectLayers->new( options => \%options, selected_layer => $payby, |