[freeside-commits] freeside/httemplate/elements select-table.html, 1.17, 1.17.2.1

Ivan,,, ivan at wavetail.420.am
Mon Mar 1 11:29:22 PST 2010


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv20175/httemplate/elements

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	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.17
retrieving revision 1.17.2.1
diff -u -w -d -r1.17 -r1.17.2.1
--- select-table.html	25 Sep 2009 10:14:30 -0000	1.17
+++ select-table.html	1 Mar 2010 19:29:20 -0000	1.17.2.1
@@ -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
     'empty_label'    => '', #better specify it though, the default might change
@@ -118,7 +121,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