[freeside-commits] freeside/httemplate/elements select-table.html, 1.20, 1.21
Ivan,,,
ivan at wavetail.420.am
Mon Mar 1 11:29:21 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv20158/httemplate/elements
Modified Files:
select-table.html
Log Message:
enable manual selection from inventory dropdowns for svc_broadband, svc_external & svc_phone, RT#7010
Index: select-table.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/select-table.html,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -w -d -r1.20 -r1.21
--- select-table.html 4 Feb 2010 20:39:56 -0000 1.20
+++ select-table.html 1 Mar 2010 19:29:19 -0000 1.21
@@ -29,6 +29,9 @@
#or
'records' => \@records, #instead of search params
+ #instead of the primary key... only for special cases
+ 'value_col' => 'columnname',
+
#basic params controlling the resulting <SELECT>
'pre_options' => [ 'value' => 'option' ], #before normal options
'post_options' => [ 'value' => 'option' ], #after normal options
@@ -138,7 +141,7 @@
my $dbdef_table = dbdef->table($opt{'table'})
or die "can't find dbdef for ". $opt{'table'}. " table\n";
-my $key = $dbdef_table->primary_key; #? $opt{'primary_key'} ||
+my $key = $opt{'value_col'} || $dbdef_table->primary_key;
my $name_col = $opt{'name_col'};
More information about the freeside-commits
mailing list