[freeside-commits] freeside/httemplate/misc cdr.cgi,1.1,1.2
Erik Levinson
levinse at wavetail.420.am
Mon Jan 24 15:06:51 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv17305/httemplate/misc
Modified Files:
cdr.cgi
Log Message:
CDR reprocess with termination, RT8763
Index: cdr.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/cdr.cgi,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- cdr.cgi 10 Feb 2009 10:35:13 -0000 1.1
+++ cdr.cgi 24 Jan 2011 23:06:49 -0000 1.2
@@ -33,10 +33,7 @@
) {
my $cdr = qsearchs('cdr', { 'acctid' => $acctid });
if ( $action eq 'reprocess selected' && $cdr ) { #new
- my %hash = $cdr->hash;
- $hash{'freesidestatus'} = '';
- my $new = new FS::cdr \%hash;
- my $error = $new->replace($cdr);
+ my $error = $cdr->clear_status;
die $error if $error;
} elsif ( $action eq 'delete selected' && $cdr ) { #del
my $error = $cdr->delete;
More information about the freeside-commits
mailing list