projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix linking of new customer contact to an existing email address, #25536
[freeside.git]
/
httemplate
/
elements
/
select-table.html
diff --git
a/httemplate/elements/select-table.html
b/httemplate/elements/select-table.html
index
4b6ddb4
..
6fb6b38
100644
(file)
--- a/
httemplate/elements/select-table.html
+++ b/
httemplate/elements/select-table.html
@@
-159,7
+159,7
@@
my $key = $opt{'value_col'} || $dbdef_table->primary_key;
my $name_col = $opt{'name_col'};
my $name_col = $opt{'name_col'};
-my $value =
$opt{'curr_value'} ||
$opt{'value'};
+my $value =
exists($opt{'curr_value'}) ? $opt{'curr_value'} :
$opt{'value'};
$value = [ split(/\s*,\s*/, $value) ] if $opt{'multiple'} && $value =~ /,/;
#my $addl_from = $opt{'addl_from'} || '';
$value = [ split(/\s*,\s*/, $value) ] if $opt{'multiple'} && $value =~ /,/;
#my $addl_from = $opt{'addl_from'} || '';
@@
-182,6
+182,7
@@
if ( $opt{'records'} ) {
unless $opt{'presorted'};
} else {
@records = qsearch( {
unless $opt{'presorted'};
} else {
@records = qsearch( {
+ 'select' => $opt{'select'} || '*',
'table' => $opt{'table'},
'addl_from' => $opt{'addl_from'},
'hashref' => $hashref,
'table' => $opt{'table'},
'addl_from' => $opt{'addl_from'},
'hashref' => $hashref,