[freeside-commits] branch master updated. f48943ca9b3d280919d5e2d4cb6880ea8f095d7b

Ivan ivan at 420.am
Fri Dec 12 15:37:22 PST 2014


The branch, master has been updated
       via  f48943ca9b3d280919d5e2d4cb6880ea8f095d7b (commit)
      from  45ee8d3260326777619cb0b49583182ede66df37 (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 f48943ca9b3d280919d5e2d4cb6880ea8f095d7b
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Dec 12 15:37:20 2014 -0800

    proper fix for signupdate_age that works in customer context too, RT#31213

diff --git a/FS/FS/part_event/Condition/signupdate_age.pm b/FS/FS/part_event/Condition/signupdate_age.pm
index 0c78b4c..0cfe550 100644
--- a/FS/FS/part_event/Condition/signupdate_age.pm
+++ b/FS/FS/part_event/Condition/signupdate_age.pm
@@ -14,11 +14,11 @@ sub option_fields {
 }
 
 sub condition {
-  my( $self, $cust_bill, %opt ) = @_;
+  my( $self, $object, %opt ) = @_;
 
   my $age = $self->option_age_from('age', $opt{'time'} );
 
-  my $cust_main = $cust_bill->cust_main;
+  my $cust_main = $self->cust_main($object);
   ( $cust_main->signupdate - 60 ) <= $age;
 
 }

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

Summary of changes:
 FS/FS/part_event/Condition/signupdate_age.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list