LP1958573 PMC messages created by action triggers not patron-visible
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 20 Jan 2022 19:42:33 +0000 (14:42 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Tue, 12 Jul 2022 14:30:35 +0000 (10:30 -0400)
This adds a missing patron-visibility flag to messages created for
the patron message center by notification action triggers (when
using grouped events).

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/EventGroup.pm

index ec1c3e7..b592109 100644 (file)
@@ -83,6 +83,7 @@ sub react {
                     $usr_message->message( $message_template_output );
                     $usr_message->usr( $env->{usr_message}{usr}->id );
                     $usr_message->sending_lib( $env->{usr_message}{sending_lib}->id );
+                    $usr_message->pub('t');
 
                     if ($self->editor->xact_begin) {
                         if ($self->editor->create_actor_usr_message( $usr_message )) {