From 6a63b21c9f0c7abf516757e27395a5b347d1c4b6 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Fri, 14 Dec 2018 02:05:36 +0000 Subject: [PATCH] Bug 11492: (follow-up) Don't pass publisheddatetext param to NewIssue I have removed publisheddatetext as a param from my patch, but only in the places where my patch added it. Any other instance already existed before my patch. Signed-off-by: Liz Rea Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize (cherry picked from commit ac423d5dcf2c7503a8ca78cbafdb94dfc43dfdb6) Signed-off-by: Fridolin Somers (cherry picked from commit 6b44e314577ade8b92ae330668510ae94f2f6469) Signed-off-by: Lucas Gass --- C4/Serials.pm | 2 +- serials/serials-collection.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index 824be86413..f85795adf1 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -1161,7 +1161,7 @@ sub ModSerialStatus { WHERE subscriptionid = ?"; $sth = $dbh->prepare($query); $sth->execute( $newlastvalue1, $newlastvalue2, $newlastvalue3, $newinnerloop1, $newinnerloop2, $newinnerloop3, $subscriptionid ); - NewIssue( $newserialseq, $subscriptionid, $subscription->{'biblionumber'}, 1, $nextpubdate, $nextpubdate, $publisheddatetext, $notes, $routingnotes ); + NewIssue( $newserialseq, $subscriptionid, $subscription->{'biblionumber'}, 1, $nextpubdate, $nextpubdate, undef, $notes, $routingnotes ); # check if an alert must be sent... (= a letter is defined & status became "arrived" if ( $subscription->{letter} && $status == ARRIVED && $oldstatus != ARRIVED ) { require C4::Letters; diff --git a/serials/serials-collection.pl b/serials/serials-collection.pl index 39e08f1a87..eb7336b3dd 100755 --- a/serials/serials-collection.pl +++ b/serials/serials-collection.pl @@ -88,7 +88,7 @@ if($op eq 'gennext' && @subscriptionid){ my $planneddate = $date_received_today ? dt_from_string : $nextpublisheddate; ## Creating the new issue NewIssue( $newserialseq, $subscriptionid, $subscription->{'biblionumber'}, - 1, $planneddate, $nextpublisheddate, $issue->{publisheddatetext}, + 1, $planneddate, $nextpublisheddate, undef, $issue->{notes}, $issue->{routingnotes} ); ## Updating the subscription seq status -- 2.39.5