CVar->save_custom_variables('dbh' => $dbh,
'module' => 'CT',
'trans_id' => $form->{id},
- 'variables' => $form);
+ 'variables' => $form,
+ 'always_valid' => 1);
$rc = $dbh->commit();
$dbh->disconnect();
CVar->save_custom_variables('dbh' => $dbh,
'module' => 'CT',
'trans_id' => $form->{id},
- 'variables' => $form);
+ 'variables' => $form,
+ 'always_valid' => 1);
$rc = $dbh->commit();
$dbh->disconnect();
do_statement($form, $sth, $query, @values);
- $self->save_custom_variables_validity(trans_id => $params{trans_id}, config_id => $config->{id},
- validity => ($params{variables}->{"$params{name_prefix}cvar_$config->{name}$params{name_postfix}_valid"} ? 1 : 0)
- );
+ unless ($params{always_valid}) {
+ $self->save_custom_variables_validity(trans_id => $params{trans_id}, config_id => $config->{id},
+ validity => ($params{variables}->{"$params{name_prefix}cvar_$config->{name}$params{name_postfix}_valid"} ? 1 : 0)
+ );
+ };
}
$sth->finish();