[freeside-commits] branch FREESIDE_3_BRANCH updated. d8230051d701b0e6105b7196a328dfaac980609b
Ivan
ivan at 420.am
Fri Dec 12 15:37:25 PST 2014
The branch, FREESIDE_3_BRANCH has been updated
via d8230051d701b0e6105b7196a328dfaac980609b (commit)
from 965a053f2a74114c605b50bfefd0dcc168fb1bd5 (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 d8230051d701b0e6105b7196a328dfaac980609b
Author: Ivan Kohler <ivan at freeside.biz>
Date: Fri Dec 12 15:37:24 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