[Koha-bugs] [Bug 22180] SERIAL_ALERT email does not send if the status is claimed before arrived

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jun 14 11:02:39 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22180

--- Comment #3 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
ModSerialStatus has 2 checks:

# create new expected entry if needed (ie : was "expected" and has changed)
my $otherIssueExpected = scalar findSerialsByStatus(EXPECTED, $subscriptionid);
if ( !$otherIssueExpected && $oldstatus == EXPECTED && $status != EXPECTED ) {

And within:

if ( $subscription->{letter} && $status == ARRIVED && $oldstatus != ARRIVED ) {
 require C4::Letters;
 C4::Letters::SendAlerts( 'issue', $serialid, $subscription->{letter} );
}

I am tempted to move the second if outside of the first one that has the
expected check... might do that for testing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list