X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event.pm;h=a740bb836e38250c48f3a37f2a495010e8e86736;hb=2e7ce01632012ccc0dd440a8bc37a9ec9bd55fac;hp=31d2afd239aeafb969dcbde46efaa366a995939e;hpb=c6e4f9460f44a7440ef2fa7e67ed51dfe40a7668;p=freeside.git diff --git a/FS/FS/part_event.pm b/FS/FS/part_event.pm index 31d2afd23..a740bb836 100644 --- a/FS/FS/part_event.pm +++ b/FS/FS/part_event.pm @@ -253,7 +253,7 @@ sub templatename { } } -=item targets +=item targets OPTIONS Returns all objects (of type C, for this object's C) eligible for processing under this event, as of right now. @@ -268,7 +268,8 @@ but can be useful when configuring events. sub targets { my $self = shift; - my $time = time; # $opt{'time'}? + my %opt = @_; + my $time = $opt{'time'} || time; my $eventpart = $self->eventpart; $eventpart =~ /^\d+$/ or die "bad eventpart $eventpart"; @@ -582,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 ) );