allow filters to act on unfinished events.

This commit is contained in:
Isaac Connor 2017-03-29 09:39:20 -04:00
parent 3cd9e46df9
commit a6261b5497
1 changed files with 4 additions and 4 deletions

View File

@ -254,14 +254,14 @@ sub Sql {
} # end if terms
if ( $self->{Sql} ) {
if ( $self->{AutoMessage} ) {
#if ( $self->{AutoMessage} ) {
# Include all events, including events that are still ongoing
# and have no EndTime yet
$sql .= " and ( ".$self->{Sql}." )";
} else {
#} else {
# Only include closed events (events with valid EndTime)
$sql .= " where not isnull(E.EndTime) and ( ".$self->{Sql}." )";
}
#$sql .= " where not isnull(E.EndTime) and ( ".$self->{Sql}." )";
#}
}
my @auto_terms;
if ( $self->{AutoArchive} ) {