Bug 9574 - serials/subscription-add.pl does not work right under Plack
Summary: serials/subscription-add.pl does not work right under Plack
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low critical
Assignee: Galen Charlton
QA Contact: Katrin Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-08 14:21 UTC by Jared Camins-Esakov
Modified: 2019-06-27 09:24 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 9574: Plack fixes for serials/subscription-add.pl (2.56 KB, patch)
2013-02-10 18:29 UTC, Jared Camins-Esakov
Details | Diff | Splinter Review
Bug 9574: Plack fixes for serials/subscription-add.pl (2.61 KB, patch)
2013-02-14 08:57 UTC, Chris Cormack
Details | Diff | Splinter Review
[PASSED QA] Bug 9574: Plack fixes for serials/subscription-add.pl (2.73 KB, patch)
2013-03-05 07:33 UTC, Katrin Fischer
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Camins-Esakov 2013-02-08 14:21:07 UTC
When editing a subscription under Plack, the area for entering manual history appears regardless of whether you enabled manual history or not. I also get the following warnings in the log, one of which, presumably, is related to the problem:
Use of uninitialized value $firstissuedate in string eq at /home/jcamins/kohaclone/serials/subscription-add.pl line 92.
Use of uninitialized value $firstissuedate in substr at /home/jcamins/kohaclone/serials/subscription-add.pl line 105.
Use of qw(...) as parentheses is deprecated at /home/jcamins/kohaclone/serials/subscription-add.pl line 95.
Subroutine letter_loop redefined at /home/jcamins/kohaclone/serials/subscription-add.pl line 180.
Subroutine _get_sub_length redefined at /home/jcamins/kohaclone/serials/subscription-add.pl line 195.
Subroutine redirect_add_subscription redefined at /home/jcamins/kohaclone/serials/subscription-add.pl line 205.
Variable "$firstissuedate" is not available at /home/jcamins/kohaclone/serials/subscription-add.pl line 338.
Subroutine redirect_mod_subscription redefined at /home/jcamins/kohaclone/serials/subscription-add.pl line 274.
Comment 1 Jared Camins-Esakov 2013-02-10 18:15:28 UTC
Actually, the area for entering manual history always shows up, regardless whether you're running under Plack or not.
Comment 2 Jared Camins-Esakov 2013-02-10 18:29:55 UTC Comment hidden (obsolete)
Comment 3 Jared Camins-Esakov 2013-02-10 18:32:36 UTC
The manual history block showing up was already reported as bug 7608.
Comment 4 Chris Cormack 2013-02-14 08:57:14 UTC Comment hidden (obsolete)
Comment 5 Katrin Fischer 2013-03-05 07:33:40 UTC
Created attachment 15876 [details] [review]
[PASSED QA] Bug 9574: Plack fixes for serials/subscription-add.pl

This patch fixes the following warnings under Plack:
* Use of uninitialized value $firstissuedate in string eq at \
    /home/jcamins/kohaclone/serials/subscription-add.pl line 92.
* Use of uninitialized value $firstissuedate in substr at \
    /home/jcamins/kohaclone/serials/subscription-add.pl line 105.
* Use of qw(...) as parentheses is deprecated at \
    /home/jcamins/kohaclone/serials/subscription-add.pl line 95.
* Variable "$firstissuedate" is not available at \
    /home/jcamins/kohaclone/serials/subscription-add.pl line 338.

To test:
1) Create a subscription. Ensure that setting the first issue's
   publication date works.
2) Edit a subscription. Ensure that the first issue's publication
   date shows up.
3) Sign off.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
No regressions found, all tests and QA script pass.
Comment 6 Jared Camins-Esakov 2013-03-07 14:18:26 UTC
This patch has been pushed to master.
Comment 7 Chris Cormack 2013-03-11 09:18:22 UTC
Pushed to 3.10.x will be in 3.10.4