summaryrefslogtreecommitdiff
path: root/httemplate/misc/cdr.cgi
diff options
context:
space:
mode:
authorlevinse <levinse>2011-01-24 23:06:50 +0000
committerlevinse <levinse>2011-01-24 23:06:50 +0000
commit6a9752537df3650872ec59f0d70afeab6b570f2d (patch)
tree4cb26e50a98edca2eb260fd0fec22941b6d487a9 /httemplate/misc/cdr.cgi
parent3ae449712c536f30ab0c50c20b97f408811adeaf (diff)
CDR reprocess with termination, RT8763
Diffstat (limited to 'httemplate/misc/cdr.cgi')
-rw-r--r--httemplate/misc/cdr.cgi5
1 files changed, 1 insertions, 4 deletions
diff --git a/httemplate/misc/cdr.cgi b/httemplate/misc/cdr.cgi
index d2ee77364..a344e509f 100644
--- a/httemplate/misc/cdr.cgi
+++ b/httemplate/misc/cdr.cgi
@@ -33,10 +33,7 @@ if ( $action eq 'new' ) {
) {
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;