always pass the "time" parameter to join_conditions_sql, related to #28978
[freeside.git] / FS / FS / part_event.pm
index 9354f4d..e7acf5a 100644 (file)
@@ -270,7 +270,9 @@ sub targets {
   }
 
   # this is the 'event' side
-  my $join = FS::part_event_condition->join_conditions_sql( $eventtable );
+  my $join = FS::part_event_condition->join_conditions_sql( $eventtable,
+    'time' => $time
+  );
   my $where = FS::part_event_condition->where_conditions_sql( $eventtable,
     'time' => $time
   );