From: Lyon3 Team Date: Mon, 8 Apr 2013 09:14:09 +0000 (+0200) Subject: Bug 8896: Delete serials no more missing from missinglist X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=ccc7f535cb585352b2e933c1e5694e1d6e06d38b;p=koha.git Bug 8896: Delete serials no more missing from missinglist When manual history is disabled in subscription history section if a serial has been previously set as missing and is received or set as expected, late or claimed, it will be deleted from missinglist Signed-off-by: Marcel de Rooy Regex needs a followup. More comments on Bugzilla. Signed-off-by: Jonathan Druart Signed-off-by: Jared Camins-Esakov --- diff --git a/C4/Serials.pm b/C4/Serials.pm index b8b53ed21f..784916c11b 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -1138,7 +1138,10 @@ sub ModSerialStatus { $recievedlist .= "; $serialseq" unless ( index( "$recievedlist", "$serialseq" ) >= 0 ); } - + # in case serial has been previously marked as missing + if (grep /$status/, (1,2,3,7)) { + $missinglist =~ s/[,;]?\s?$serialseq//g; + } # warn "missinglist : $missinglist serialseq :$serialseq, ".index("$missinglist","$serialseq"); $missinglist .= "; $serialseq" if ( $status == 4