always pass the "time" parameter to join_conditions_sql, related to #28978
[freeside.git] / httemplate / browse / part_event.html
index 62e7ff0..575294e 100644 (file)
@@ -59,7 +59,7 @@ my $event_sub = sub {
         'link'       => $p.'edit/part_event.html?'.$part_event->eventpart,
       },
       {
-        'data'       => ' (query) ',
+        'data'       => '(query) ',
         'size'       => '-1',
         'data_style' => 'b',
         'onclick'    => $onclick,
@@ -188,7 +188,7 @@ my $count_query = 'SELECT COUNT(*) FROM part_event WHERE '.
                     'viewall_right' => 'None',
                   );
 
-my $join_conditions  = FS::part_event_condition->join_conditions_sql;
+my $join_conditions  = FS::part_event_condition->join_conditions_sql('', 'time' => time);
 my $order_conditions = FS::part_event_condition->order_conditions_sql;
 
 </%init>