[freeside-commits] freeside/httemplate/misc cdr-post.cgi,1.1,1.2

Ivan,,, ivan at wavetail.420.am
Wed Jun 23 13:51:36 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv3649

Modified Files:
	cdr-post.cgi 
Log Message:
fix cdrbatch problem, RT#8906

Index: cdr-post.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/cdr-post.cgi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- cdr-post.cgi	8 Jun 2010 08:24:46 -0000	1.1
+++ cdr-post.cgi	23 Jun 2010 20:51:34 -0000	1.2
@@ -10,6 +10,7 @@
 
 my $error = '';
 my $cdr_batch;
+my $cdrbatch = '';
 
 {
 
@@ -29,7 +30,7 @@
 
   my $csv = new Text::CSV_XS or die Text::CSV->error_diag;
 
-  my $cdrbatch = time2str('post-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
+  $cdrbatch = time2str('post-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time);
   $cdr_batch = new FS::cdr_batch { 'cdrbatch' => $cdrbatch };
   $error = $cdr_batch->insert and last;
 



More information about the freeside-commits mailing list