[freeside-commits] branch master updated. 507f1809a908cf738252be86bd444253787302b7

Ivan ivan at 420.am
Mon Jun 30 18:46:05 PDT 2014


The branch, master has been updated
       via  507f1809a908cf738252be86bd444253787302b7 (commit)
      from  1d050e512416494a9f3efe232ec19ccf18b7b9af (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 507f1809a908cf738252be86bd444253787302b7
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Jun 30 18:46:04 2014 -0700

    use a separate table for freesidestatus for IVR imports, RT#39055

diff --git a/FS/FS/cdr/Import.pm b/FS/FS/cdr/Import.pm
index ca6ae93..a97472e 100644
--- a/FS/FS/cdr/Import.pm
+++ b/FS/FS/cdr/Import.pm
@@ -81,7 +81,7 @@ sub dbi_import {
   #      )
 
   #my @cols = values %{ $args{column_map} };
-  my $sql = "SELECT * FROM $table "; # join(',', @cols). " FROM $table ".
+  my $sql = "SELECT $table.* FROM $table "; # join(',', @cols). " FROM $table ".
   $sql .=  'LEFT JOIN '. $args{status_table}.
            " ON ( $table.$pkey = ". $args{status_table}. ".$pkey )"
     if $args{status_table};
@@ -117,8 +117,7 @@ sub dbi_import {
 
     $cdr->cdrtypenum($opt{c}) if $opt{c};
 
-    my $pkey_value = $args{status_table} ? $row->{"$table.$pkey"}
-                                         : $row->{$pkey};
+    my $pkey_value = $row->{$pkey};
 
     #print "$pkey_value\n" if $opt{v};
     my $error = $cdr->insert;

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cdr/Import.pm |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list