diff options
author | ivan <ivan> | 2011-09-22 22:09:49 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-09-22 22:09:49 +0000 |
commit | 91ffcc0ecc1e1da51fa4b99a342691caa85a5992 (patch) | |
tree | 4f2698dc92a432469b2d12d0c9dd935c47d9fb8f /httemplate/edit/process | |
parent | 1c4910d0047029e0cee65a658e5090096d548d8a (diff) |
random cleanups
Diffstat (limited to 'httemplate/edit/process')
-rwxr-xr-x | httemplate/edit/process/cust_credit.cgi | 7 | ||||
-rw-r--r-- | httemplate/edit/process/tax_class.html | 4 |
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 |