[freeside-commits] freeside/httemplate/edit/process quick-charge.cgi, 1.10, 1.10.2.1
Ivan,,,
ivan at wavetail.420.am
Thu Sep 13 20:45:42 PDT 2007
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail:/tmp/cvs-serv23552
Modified Files:
Tag: FREESIDE_1_7_BRANCH
quick-charge.cgi
Log Message:
Fix 'Can't use an undefined value as an ARRAY reference at /usr/local/share/perl/5.8.8/FS/cust_main.pm line 4383.' error
Index: quick-charge.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/quick-charge.cgi,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -u -d -r1.10 -r1.10.2.1
--- quick-charge.cgi 20 Jan 2007 00:08:39 -0000 1.10
+++ quick-charge.cgi 14 Sep 2007 03:45:40 -0000 1.10.2.1
@@ -24,17 +24,17 @@
% my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } )
% or $error .= "Unknown customer number $custnum. ";
%
-% $error ||= $cust_main->charge({ 'amount' => $amount,
-% 'pkg' => $cgi->param('pkg'),
-% 'taxclass' => $cgi->param('taxclass'),
-% 'additional' => \@description,
-% }
-% );
+% $error ||= $cust_main->charge( {
+% 'amount' => $amount,
+% 'pkg' => scalar($cgi->param('pkg')),
+% 'taxclass' => scalar($cgi->param('taxclass')),
+% 'additional' => \@description,
+% } );
% }
%
% if ( $error ) {
%
-% $cgi->param('error', "$error" );
+% $cgi->param('error', $error );
%
<% $cgi->redirect($p.'quick-charge.html?'. $cgi->query_string) %>
%
@@ -44,4 +44,3 @@
window.top.location.reload();
</SCRIPT>
</BODY></HTML>
-
More information about the freeside-commits
mailing list