LP#1660059: Protect against null value in group field user/miker/lp1660059-invalidate-events-with-null-group-field-value
authorMike Rylander <mrylander@gmail.com>
Tue, 31 Jan 2017 17:35:05 +0000 (12:35 -0500)
committerMike Rylander <mrylander@gmail.com>
Tue, 31 Jan 2017 17:35:05 +0000 (12:35 -0500)
commitb3f7dd8557bc53a31bf097e92795e28b6a92fa1f
tree57e3b73f8d080ea70133b6e8f168185529c56627
parent117d1641c4a31df9994b80f307e833701266d1f1
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Event.pm