]> git.koha-community.org Git - koha.git/commit
Bug 8800 - useDaysMode=Datedue wrong behaviour (revisited)
authorTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 21 Sep 2012 15:50:26 +0000 (12:50 -0300)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 22 Nov 2012 14:11:19 +0000 (09:11 -0500)
commit7b18e2146cbb1f4d0f9a87002e5ec8580bc188d6
tree4783ec0885d0223f148529fd59e5873a8d80593b
parentbe19f11e9787554e65dfbbc6252a85b55158b44e
Bug 8800 - useDaysMode=Datedue wrong behaviour (revisited)

useDaysMode=Datedue wasn't used as advertised in the docs. Added
next_open_day and prev_open_day subs to Koha::Calendar and some tests for them.

- Koha::Calendar->addDate was rewritten in a more sane way (also split into
  addHours and addDays for convenience).
- Fixed a bug introduced in Bug 8966 regarding dt truncation and dtSets->contains
- Minor docs typos
- Use the passed Calendar mode or default to 'Calendar' in Koha::Calendar->_mockinit.
- Tests

I'm writing some db-dependent tests for is_holiday, and hopefully for CalcDateDue so any
rewrite/followup doesn't break things.

Regards
To+

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/Circulation.pm
Koha/Calendar.pm
t/Calendar.t