summaryrefslogtreecommitdiff
path: root/FS/FS/part_event.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-08-29 15:24:02 -0700
committerMark Wells <mark@freeside.biz>2012-08-29 15:24:02 -0700
commitdc6eb0609882ec1443a79a309577108e92011dc9 (patch)
treeac08742f3ffb63f05c747b5cc59426be861ddf23 /FS/FS/part_event.pm
parentc19fc5ead7b7eb700ced64658378ac934b1bc98d (diff)
fix "time" parameter when querying events
Diffstat (limited to 'FS/FS/part_event.pm')
-rw-r--r--FS/FS/part_event.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/part_event.pm b/FS/FS/part_event.pm
index 62f16fa..b7371c9 100644
--- a/FS/FS/part_event.pm
+++ b/FS/FS/part_event.pm
@@ -306,8 +306,8 @@ sub targets {
});
my @tested_objects;
foreach my $object ( @objects ) {
- my $cust_event = $self->new_cust_event($object);
- next unless $cust_event->test_conditions('time' => $time);
+ my $cust_event = $self->new_cust_event($object, 'time' => $time);
+ next unless $cust_event->test_conditions;
$object->set('cust_event', $cust_event);
push @tested_objects, $object;