Comment 9 for bug 1410369

Revision history for this message
Bill Erickson (berick) wrote :

All messages now display in the TPAC, yay!

Moving on to more tests.. I am unable to generate a message from an action_trigger event, specifically testing event_def 52 "Hold Cancelled (Staff) User Message". The event is created and appears to process without error, but the usr_message never materializes.

I added some debug logs to Event.pm and found that w/ the stock def, we get into this code block:

if ($self->event->event_def->message_usr_path and $self->environment->{usr_message}{template}) {
...
}

But we don't get into this code block:

if ($env->{usr_message}{usr} && $env->{usr_message}{template}) {
}

As an experiment, I set the "group_field" to null on the event def, thinking it might be having problems finding the user field, and then the code did make it into the above code block. However, the next step then produces no output:

my $message_template_output =
    $reactor->pass('ProcessMessage')->run->final_result;

That's as far as I could get at the time. Hope this helps.