From 5656cfb09dab61244bea0d785e1d190aacdb1a06 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Wed, 9 Dec 2015 10:25:43 +0000 Subject: [PATCH] Bug 7728: fix subs history end date consistency Without this patch, there is an inconsistency in subscriptions: * a new subscription has no history end date set (as expected) * if you renew it, a date is set. This patch removes the setting of the history end date during renewal Test plan: * create a subscription, go to subscription-detail.pl page, tab "Summary". No History end date is set * renew the subscription => a date has been set * apply the patch * create another subscription * renew it => no history end date has been set * sign-off Signed-off-by: beroud --- C4/Serials.pm | 7 ------- 1 file changed, 7 deletions(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index 543b1dc..952c11f 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -1540,13 +1540,6 @@ sub ReNewSubscription { |; $sth = $dbh->prepare($query); $sth->execute( $enddate, $subscriptionid ); - $query = qq| - UPDATE subscriptionhistory - SET histenddate=? - WHERE subscriptionid=? - |; - $sth = $dbh->prepare($query); - $sth->execute( $enddate, $subscriptionid ); logaction( "SERIAL", "RENEW", $subscriptionid, "" ) if C4::Context->preference("SubscriptionLog"); return; -- 2.1.4