diff options
author | ivan <ivan> | 2010-03-01 19:29:19 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-03-01 19:29:19 +0000 |
commit | 5b29227d64e62b6f056c4bcec0a3e0a82269a3e5 (patch) | |
tree | 9a093dd76ac07557689370a73b6b75c42d28defb /httemplate/elements | |
parent | c03e828b32cd5a4fd264f89d42a80a02edbfb5ea (diff) |
enable manual selection from inventory dropdowns for svc_broadband, svc_external & svc_phone, RT#7010
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/select-table.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/elements/select-table.html b/httemplate/elements/select-table.html index 3e25c9f49..772f0c653 100644 --- a/httemplate/elements/select-table.html +++ b/httemplate/elements/select-table.html @@ -29,6 +29,9 @@ Example: #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 @@ if ( $opt{'onchange'} ) { 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'}; |