[Koha-bugs] [Bug 7728] New: subscription endddate is copied into subscription history histendate field during renew process

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 16 19:06:49 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7728

          Priority: P4
 Change sponsored?: ---
            Bug ID: 7728
          Assignee: koha at univ-lyon3.fr
           Summary: subscription endddate is copied into subscription
                    history histendate field during renew process
        QA Contact: koha.sekjal at gmail.com
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: koha at univ-lyon3.fr
          Hardware: All
            Status: NEW
           Version: rel_3_6
         Component: Serials
           Product: Koha

Created attachment 8240
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=8240&action=edit
histenddate box legend

May be I missed something but even if the subscription history displays the
following legend below the histenddate box:
(if empty, subscription is still active)
the new subscription enddate is systematically copied as histenddate during the
renew process as we can see in the ReNewSubscription function (line 1332 from
Serial.pm) :
    $query = qq|
        UPDATE subscriptionhistory
        SET    histenddate=?
        WHERE  subscriptionid=?
    |;
    $sth = $dbh->prepare($query);
    $sth->execute( $enddate, $subscriptionid );

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


More information about the Koha-bugs mailing list