]> git.koha-community.org Git - koha.git/commit
Bug 13109: Serial failure for received and general viewing.
authorMason James <mtj@kohaaloha.com>
Mon, 30 Mar 2015 06:33:45 +0000 (19:33 +1300)
committerChris Cormack <chris@bigballofwax.co.nz>
Sun, 17 May 2015 04:26:34 +0000 (16:26 +1200)
commit52ece7fa9e8f32f52f798d3c44759248874787a7
treeb9e8c338f230451bc14fa4d56c54fd5c638594eb
parentb86ce9f81c47bc22a5466530d045a96b11568f4b
Bug 13109: Serial failure for received and general viewing.

to test...

1/ attempt to view a subscription-detail that has a NULL value for either it's 'startdate' or 'enddate'

  an example url would be...
  http://koha-admin.foo.org/cgi-bin/koha/serials/subscription-detail.pl?subscriptionid=1

  observe error...
  'Date::Calc::PP::Delta_Days(): Usage: Date::Calc::Delta_Days($year1,$month1,$day1,$year2,$month2,$day2) at /your/koha/C4/Serials.pm line 2325'

2/ apply patch
3/ repeat step 1/
   observe that detail page displays OK

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
I confirm the issue if startdate is null (can exist with old data,
before the js check on the form).
Amended patch: Remove trailing space char and the link to the bz number
(can be found using git log).

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 381959a935b39b08fc53e81b0fb4f9b383c11adb)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
C4/Serials.pm