summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-payby.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/select-payby.html')
-rw-r--r--httemplate/elements/select-payby.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/elements/select-payby.html b/httemplate/elements/select-payby.html
index 3f19cb952..e0fb4f07d 100644
--- a/httemplate/elements/select-payby.html
+++ b/httemplate/elements/select-payby.html
@@ -8,7 +8,9 @@
% }
% foreach my $option ( keys %{ $opt{'paybys'} } ) {
-% my $sel = ( ref($value) && $value->{$option} ) || $option eq $value;
+% my $sel = $opt{'all_selected'}
+% || ( ref($value) && $value->{$option} )
+% || $option eq $value;
<OPTION VALUE="<% $option %>"
<% $sel ? 'SELECTED' : '' %>