projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix upgrade: clear bad cust_refund.source_paynum before encrypting, RT#81508
[freeside.git]
/
httemplate
/
elements
/
select-cust_main-status.html
diff --git
a/httemplate/elements/select-cust_main-status.html
b/httemplate/elements/select-cust_main-status.html
index
2e0b6cb
..
4885a0e
100644
(file)
--- a/
httemplate/elements/select-cust_main-status.html
+++ b/
httemplate/elements/select-cust_main-status.html
@@
-8,8
+8,10
@@
% foreach my $option ( @{ $opt{'statuses'} } ) {
<OPTION VALUE="<% $option %>"
% foreach my $option ( @{ $opt{'statuses'} } ) {
<OPTION VALUE="<% $option %>"
- <% $option eq $curr_value ? 'SELECTED' : '' %>
- ><% $option %>
+ <% ref($value) && $value->{$option} || $option eq $value
+ ? 'SELECTED' : ''
+ %>
+ ><% FS::cust_main->statuslabels->{$option} %>
% }
% }
@@
-25,6
+27,7
@@
my $onchange = $opt{'onchange'}
? 'onChange="'. $opt{'onchange'}. '(this)"'
: '';
? 'onChange="'. $opt{'onchange'}. '(this)"'
: '';
-my $curr_value = $opt{'curr_value'} || $opt{'value'};
+my $value = $opt{'curr_value'} || $opt{'value'};
+$value = [ split(/\s*,\s*/, $value) ] if $opt{'multiple'} && $value =~ /,/;
</%init>
</%init>