projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ef25e34
)
don't show duplicate 'Credit card' or 'Check' choices even when signup_server-payby...
author
ivan
<ivan>
Tue, 20 Oct 2009 18:30:13 +0000
(18:30 +0000)
committer
ivan
<ivan>
Tue, 20 Oct 2009 18:30:13 +0000
(18:30 +0000)
fs_selfservice/FS-SelfService/cgi/change_pay.html
patch
|
blob
|
history
diff --git
a/fs_selfservice/FS-SelfService/cgi/change_pay.html
b/fs_selfservice/FS-SelfService/cgi/change_pay.html
index
e7a9969
..
bbe4527
100644
(file)
--- 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});
$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,
HTML::Widgets::SelectLayers->new(
options => \%options,
selected_layer => $payby,