]> git.evergreen-ils.org Git - contrib/Conifer.git/commit
LP#1660059: Protect against null value in group field
authorMike Rylander <mrylander@gmail.com>
Tue, 31 Jan 2017 17:35:05 +0000 (12:35 -0500)
committerMike Rylander <mrylander@gmail.com>
Thu, 2 Feb 2017 20:36:27 +0000 (15:36 -0500)
commitfbf20f9ef105ee55a526f90f105bc7667ed76bd8
treef04e78ce975ef36c4b4273fa457c67f07e1944b3
parentc42247edb255ce7c593700152b27395936597552
LP#1660059: Protect against null value in group field

If a nullable event grouping field is configured, and a null value is indeed
encountered when pulling together events, the Action/Trigger code will exit
unceremoniously.  To prevent this, we will now collect events with either
a null grouping object or grouping field, and use a new batch invalidation
API call to get rid of them as quickly as possible after group sorting is
complete.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm