From 867dee4139a97c03539667ba26f3cd1d29137998 Mon Sep 17 00:00:00 2001 From: Lyon3 Team Date: Thu, 17 Jan 2013 11:26:03 +0100 Subject: [PATCH] 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, it will be deleted from missinglist. --- C4/Serials.pm | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index 0b31a2b..d2eb560 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -1137,7 +1137,10 @@ sub ModSerialStatus { $recievedlist .= "; $serialseq" unless ( index( "$recievedlist", "$serialseq" ) >= 0 ); } - + # in case serial has been previously marked as missing + if (grep /$status/, (2,3,7)) { + $missinglist =~ s/[,;]?\s?$serialseq//g; + } # warn "missinglist : $missinglist serialseq :$serialseq, ".index("$missinglist","$serialseq"); $missinglist .= "; $serialseq" if ( $status == 4 -- 1.7.2.5