[freeside-commits] branch master updated. 52606e395e99306e584e5ae459375a33752c231e

Ivan ivan at 420.am
Fri Nov 15 11:55:38 PST 2013


The branch, master has been updated
       via  52606e395e99306e584e5ae459375a33752c231e (commit)
      from  6137f629b4e489bbc195ad8c8029549c1d57b980 (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 52606e395e99306e584e5ae459375a33752c231e
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Nov 15 11:55:37 2013 -0800

    fix legacy link (fallout from RT#22596)

diff --git a/FS/FS/part_export/shellcommands.pm b/FS/FS/part_export/shellcommands.pm
index ce13695..f7e8651 100644
--- a/FS/FS/part_export/shellcommands.pm
+++ b/FS/FS/part_export/shellcommands.pm
@@ -267,17 +267,19 @@ sub export_pkg_change {
 
   my @fields = qw( pkgnum pkgpart agent_pkgid ); #others?
   my @date_fields = qw( order_date start_date setup bill last_bill susp adjourn
-                        resume cancel uncancel expore contract_end );
+                        resume cancel uncancel expire contract_end );
 
   no strict 'vars';
   {
     no strict 'refs';
     foreach (@fields) {
-      ${"old_$_"} = $old_cust_pkg->getfield($_);
+      ${"old_$_"} = $old_cust_pkg ? $old_cust_pkg->getfield($_) : '';
       ${"new_$_"} = $new_cust_pkg->getfield($_);
     }
     foreach (@date_fields) {
-      ${"old_$_"} = time2str('%Y-%m-%d', $old_cust_pkg->getfield($_));
+      ${"old_$_"} = $old_cust_pkg
+                      ? time2str('%Y-%m-%d', $old_cust_pkg->getfield($_))
+                      : '';
       ${"new_$_"} = time2str('%Y-%m-%d', $new_cust_pkg->getfield($_));
     }
   }

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

Summary of changes:
 FS/FS/part_export/shellcommands.pm |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list