allow filters to act on unfinished events.
This commit is contained in:
parent
3cd9e46df9
commit
a6261b5497
|
@ -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} ) {
|
||||
|
|
Loading…
Reference in New Issue