[freeside-commits] freeside/httemplate/edit/process cust_credit.cgi, 1.13, 1.14 tax_class.html, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Thu Sep 22 15:06:01 PDT 2011
- Previous message: [freeside-commits] freeside/httemplate/edit access_group.html, 1.5, 1.6 cgp_rule.html, 1.5, 1.6 payment_gateway.html, 1.14, 1.15 rate_detail.html, 1.8, 1.9
- Next message: [freeside-commits] freeside/FS/FS Conf_compat17.pm,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv1743/httemplate/edit/process
Modified Files:
cust_credit.cgi tax_class.html
Log Message:
random cleanups
Index: tax_class.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/tax_class.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- tax_class.html 1 Apr 2008 00:54:43 -0000 1.1
+++ tax_class.html 22 Sep 2011 22:05:59 -0000 1.2
@@ -10,8 +10,8 @@
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
Index: cust_credit.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/cust_credit.cgi,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -w -d -r1.13 -r1.14
--- cust_credit.cgi 23 May 2011 16:25:27 -0000 1.13
+++ cust_credit.cgi 22 Sep 2011 22:05:59 -0000 1.14
@@ -42,9 +42,10 @@
$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;
- Previous message: [freeside-commits] freeside/httemplate/edit access_group.html, 1.5, 1.6 cgp_rule.html, 1.5, 1.6 payment_gateway.html, 1.14, 1.15 rate_detail.html, 1.8, 1.9
- Next message: [freeside-commits] freeside/FS/FS Conf_compat17.pm,1.10,1.11
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list