[freeside-commits] freeside/httemplate/elements select-table.html, 1.15, 1.16
Ivan,,,
ivan at wavetail.420.am
Sat May 30 23:59:39 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv31035/elements
Modified Files:
select-table.html
Log Message:
package definition browse/search, filter by package class, RT#5255
Index: select-table.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/select-table.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- select-table.html 28 Mar 2009 22:59:35 -0000 1.15
+++ select-table.html 31 May 2009 06:59:37 -0000 1.16
@@ -64,8 +64,13 @@
>
% while ( @pre_options ) {
- <OPTION VALUE="<% shift(@pre_options) %>"><% shift(@pre_options) %>
-
+% my $pre_opt = shift(@pre_options);
+% my $pre_label = shift(@pre_options);
+% my $selected = ( ref($value) && $value->{$pre_opt} )
+% || ( $value eq $pre_opt );
+ <OPTION VALUE="<% $pre_opt %>"
+ <% $selected ? 'SELECTED' : '' %>
+ ><% $pre_label %>
% }
% unless ( $opt{'multiple'} || $opt{'disable_empty'} ) {
More information about the freeside-commits
mailing list