my $dbh = $params{dbh} || $form->get_standard_dbh($myconfig);
- my $trans_id = $params{trans_id} ? 'OR (v.trans_id = ?) ' : '';
-
my $sub_module = $params{sub_module} ? $params{sub_module} : '';
my $q_var =
my ($act_var, $valid);
if ($params{trans_id}) {
- my @values = (conv_i($cvar->{id}), conv_i($params{trans_id}, $sub_module));
+ my @values = (conv_i($cvar->{id}), conv_i($params{trans_id}), $sub_module);
do_statement($form, $h_var, $q_var, @values);
$act_var = $h_var->fetchrow_hashref();