summaryrefslogtreecommitdiff
path: root/httemplate/edit/process
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/process')
-rwxr-xr-xhttemplate/edit/process/cust_credit.cgi7
-rw-r--r--httemplate/edit/process/tax_class.html4
2 files changed, 6 insertions, 5 deletions
diff --git a/httemplate/edit/process/cust_credit.cgi b/httemplate/edit/process/cust_credit.cgi
index a4330dcdd..776112ac0 100755
--- a/httemplate/edit/process/cust_credit.cgi
+++ b/httemplate/edit/process/cust_credit.cgi
@@ -42,9 +42,10 @@ if ($reasonnum == -1) {
$error = 'Enter a new reason (or select an existing one)'
unless $cgi->param('newreasonnum') !~ /^\s*$/;
- my $reason = new FS::reason({ 'reason_type' => $cgi->param('newreasonnumT'),
- 'reason' => $cgi->param('newreasonnum'),
- });
+ my $reason = new FS::reason {
+ 'reason_type' => scalar($cgi->param('newreasonnumT')),
+ 'reason' => scalar($cgi->param('newreasonnum')),
+ };
$error ||= $reason->insert;
$cgi->param('reasonnum', $reason->reasonnum)
unless $error;
diff --git a/httemplate/edit/process/tax_class.html b/httemplate/edit/process/tax_class.html
index 339c9083e..7b630ff52 100644
--- a/httemplate/edit/process/tax_class.html
+++ b/httemplate/edit/process/tax_class.html
@@ -10,8 +10,8 @@ die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
my $tax_class = new FS::tax_class {
- 'taxclass' => $cgi->param('taxclass'),
- 'description' => $cgi->param('description'),
+ 'taxclass' => scalar($cgi->param('taxclass')),
+ 'description' => scalar($cgi->param('description')),
};
#maybe this whole thing should be in a transaction. at some point, no biggie