[freeside-commits] freeside/httemplate/elements select-torrus_serviceid.html, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Sun Jan 23 18:59:50 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv28368/httemplate/elements
Modified Files:
select-torrus_serviceid.html
Log Message:
torrus, RT#10574
Index: select-torrus_serviceid.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/select-torrus_serviceid.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- select-torrus_serviceid.html 24 Jan 2011 02:56:02 -0000 1.1
+++ select-torrus_serviceid.html 24 Jan 2011 02:59:48 -0000 1.2
@@ -5,7 +5,9 @@
% }
% foreach my $serviceid ( keys %serviceid ) {
- <OPTION VALUE="<%$serviceid%>"><% $serviceid %></OPTION>
+ <OPTION VALUE="<%$serviceid%>"
+ <% $serviceid eq $value ? 'SELECTED' : '' %>
+ ><% $serviceid %></OPTION>
% }
</SELECT>
@@ -14,6 +16,8 @@
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;
More information about the freeside-commits
mailing list