[freeside-commits] branch master updated. cbcd29b65e7899f487e962a301435a32dba001e2

Ivan ivan at 420.am
Sun Nov 2 11:10:38 PST 2014


The branch, master has been updated
       via  cbcd29b65e7899f487e962a301435a32dba001e2 (commit)
      from  bd619048c12c9df799ebdf1e571da79bf89513c0 (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 cbcd29b65e7899f487e962a301435a32dba001e2
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Nov 2 11:10:36 2014 -0800

    fix dates on aradial usage import, RT#29053

diff --git a/bin/aradial-sftp_and_import b/bin/aradial-sftp_and_import
index 0cb6bca..5335703 100755
--- a/bin/aradial-sftp_and_import
+++ b/bin/aradial-sftp_and_import
@@ -169,6 +169,7 @@ foreach my $filename ( @$ls ) {
     my @extra_values = ();
     if ( $hash{'Status-Type'} eq 'Start' ) {
 
+      push @keys, 'AcctStartTime';
       $dbhash{'AcctStartTime'} = $hash{'Date'};
 
       $sql = 'INSERT INTO radacct ( '. join(',', @keys).
@@ -177,6 +178,8 @@ foreach my $filename ( @$ls ) {
     } elsif ( $hash{'Status-Type'} eq 'Stop' ) {
 
       my $AcctSessionId = delete($dbhash{AcctSessionId});
+
+      push @keys, 'AcctStopTime';
       $dbhash{'AcctStopTime'} = $hash{'Date'};
 
       push @extra_values, $AcctSessionId;

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

Summary of changes:
 bin/aradial-sftp_and_import |    3 +++
 1 file changed, 3 insertions(+)




More information about the freeside-commits mailing list