[Koha-bugs] [Bug 7899] New: Remove C4::Dates from C4::Circulation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 4 22:35:26 CEST 2012


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

          Priority: P5 - low
 Change sponsored?: ---
            Bug ID: 7899
          Assignee: tdavis at uttyler.edu
           Summary: Remove C4::Dates from C4::Circulation
        QA Contact: koha.sekjal at gmail.com
          Severity: enhancement
    Classification: Unclassified
                OS: All
          Reporter: koha.sekjal at gmail.com
          Hardware: All
            Status: NEW
           Version: master
         Component: Architecture, internals, and plumbing
           Product: Koha

Now that we have Koha::Calendar and DateTime, we no longer need C4::Dates in
C4::Circulation

There are currently 6 usages of the module left:

2 'use' calls to this... both will be removed.

2 calls to format_date in CanBookBeIssued (needsconfirmation message).  Will
need to replace with KohaDates plugin on all template pages using this
subroutine

"if (C4::Context->preference('globalDueDate') &&
(C4::Context->preference('globalDueDate') =~ C4::Dates->regexp('syspref')" is
never true since that syspref was removed, so it can be removed entirely

sub TransferSlip creates a new $pulldate variable, but never uses it before the
subroutine exits.  Can be removed

The rest of the usage here is in the POD, which needs to be updated to reflect
the new type of objects we're using now with Hourly Loans.

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


More information about the Koha-bugs mailing list