projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bulk DID orders and inventory, RT11291
[freeside.git]
/
httemplate
/
elements
/
select-torrus_serviceid.html
diff --git
a/httemplate/elements/select-torrus_serviceid.html
b/httemplate/elements/select-torrus_serviceid.html
index
a8cfca8
..
34e8e93
100644
(file)
--- a/
httemplate/elements/select-torrus_serviceid.html
+++ b/
httemplate/elements/select-torrus_serviceid.html
@@
-5,7
+5,9
@@
% }
% foreach my $serviceid ( keys %serviceid ) {
% }
% foreach my $serviceid ( keys %serviceid ) {
- <OPTION VALUE="<%$serviceid%>"><% $serviceid %></OPTION>
+ <OPTION VALUE="<%$serviceid%>"
+ <% $serviceid eq $value ? 'SELECTED' : '' %>
+ ><% $serviceid %></OPTION>
% }
</SELECT>
% }
</SELECT>
@@
-14,6
+16,8
@@
my %opt = @_;
my %opt = @_;
+my $value = $opt{'curr_value'} || $opt{'value'};
+
#is this going to get too slow or will the index make it okay?
my $sth = dbh->prepare("SELECT DISTINCT(serviceid) FROM srvexport")
or die dbh->errstr;
#is this going to get too slow or will the index make it okay?
my $sth = dbh->prepare("SELECT DISTINCT(serviceid) FROM srvexport")
or die dbh->errstr;