X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event.pm;h=a740bb836e38250c48f3a37f2a495010e8e86736;hb=430b2c784d2ee9ea5be00b821d2dbd27279ef132;hp=62f16fa1c8cf8ee419deb90eb7beb50c4808de48;hpb=fdd00d4549faaa9de8952402f77fa86d0b8b22ee;p=freeside.git diff --git a/FS/FS/part_event.pm b/FS/FS/part_event.pm index 62f16fa1c..a740bb836 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; @@ -583,6 +583,7 @@ sub actions { ( map { $_ => $actions{$_} } sort { $actions{$a}->{'default_weight'}<=>$actions{$b}->{'default_weight'} } + # || $actions{$a}->{'description'} cmp $actions{$b}->{'description'} } $class->all_actions( $eventtable ) );