]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1823983: repeat_delay check removes event definition id filter
authorMike Rylander <mrylander@gmail.com>
Tue, 9 Apr 2019 15:30:15 +0000 (11:30 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Wed, 8 Sep 2021 16:28:56 +0000 (12:28 -0400)
commit3b3548a74ba3092119c10b16b469bf3e0a01e6d1
tree0429d1f607bb69a4ade7fb52f60aca1f26ae2c16
parent98157770f0694d18aed9342367f4375dde599d3b
LP#1823983: repeat_delay check removes event definition id filter

This bug has existed since the repeat_delay feature was added, but likely only
rarely was triggered because most events don't have a repeat_delay, and those
that do don't interact with the same target.  However, as more repeatable event
definitions are created, inappropriate interaction becomes more likely.

In this commit we avoid overwriting the whole join condition clause, which
already contains an event definition id filter and needs to retain it.

Included is an unrelated change that uses the new-ish form of
interval_to_seconds that avoids DST boundary shifting issues by passing a
context DateTime object as the second parameter.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger.pm