Main Koha release repository https://koha-community.org
Find a file
Kyle M Hall 9f4b54a6d7 Bug 26604: "Generate next" button gives error on serials-collection.pl
In serials-collection.pl, the line

$frequency = C4::Serials::Frequency::GetSubscriptionFrequency($subscription->{periodicity});

causes the error

Can't use string ("13") as a HASH ref while "strict refs" in use at /usr/share/koha/lib/C4/Serials.pm line 2198.

This function call makes no sense, that subroutine always returns a list and doesn't take any parameters. I think it was meant to be GetSubscriptionFrequency which is in fact already called a few lines down.

Signed-off-by: kelly mcelligott <kelly@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

JD

Test plan:
1. Create a new subscription
  * When there is an irregular issue: Skip issue number
  * Select a frequency (not irregular)
  * Test prediction pattern and mark some "not published" (to fill the subscription.irregular DB field
2. Receive a first serial (mark it arrived, an "expected" one is created)
3. Claim the expected one
=> You have 1 arrived and 1 claimed.
It's the only way to not have an expected one and hit the else block in serials/serials-collection.pl
4. Generate next => boom

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-10-09 15:24:45 +02:00
acqui Bug 23376: (QA follow-up) Remove authnotrequired 2020-10-08 16:03:49 +02:00
admin Bug 26529: (follow-up) Remove other instance of blanking holdallowed from script 2020-10-09 13:06:59 +02:00
api
authorities
basket
bin Bug 20582: Turn Koha into a Mojolicious application 2020-10-06 12:00:04 +02:00
C4 Bug 23420: (QA follow-up) Remove more AllowPurchaseSuggestionBranchChoice code 2020-10-09 12:22:01 +02:00
catalogue
cataloguing
circ Bug 23695: (QA follow-up) Revert 'Orginating library' option 2020-10-09 13:07:01 +02:00
clubs
course_reserves
debian Bug 20582: Turn Koha into a Mojolicious application 2020-10-08 13:51:30 +02:00
docs
errors
etc Bug 20582: Add very simple configuration file for Apache 2020-10-06 12:00:04 +02:00
ill
installer Bug 26529: DBRev 20.06.00.048 2020-10-09 13:06:59 +02:00
Koha Bug 26529: Define some rules as not able to be blank 2020-10-09 13:06:59 +02:00
koha-tmpl Bug 23695: (QA follow-up) Revert 'Orginating library' option 2020-10-09 13:07:01 +02:00
labels
members
misc Bug 22417: Process the jobs even if the message broker is not reachable 2020-10-05 15:26:36 +02:00
offline_circ
opac Bug 23420: (QA follow-up) Remove more AllowPurchaseSuggestionBranchChoice code 2020-10-09 12:22:01 +02:00
patron_lists Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
patroncards
plugins
pos
reports
reserve
reviews
rotating_collections
serials Bug 26604: "Generate next" button gives error on serials-collection.pl 2020-10-09 15:24:45 +02:00
services
skel
suggestion
svc
t Bug 26529: Unit tests 2020-10-09 13:06:59 +02:00
tags
tmp/modified_authorities
tools Bug 26137: Remove warnings from viewlog.pl 2020-10-09 13:07:01 +02:00
virtualshelves
xt
.editorconfig
.eslintrc.json
.gitignore
.htaccess
.mailmap
.perlcriticrc
.scss-lint.yml
about.pl Bug 22417: Add rabbitmq status indicator on the about page 2020-10-05 15:26:36 +02:00
app.psgi Bug 20582: Fix PSGI file when behind a reverse proxy 2020-10-06 12:00:04 +02:00
changelanguage.pl
cpanfile Bug 22417: Add new Net::Stomp dependency 2020-10-05 15:23:08 +02:00
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 26529: DBRev 20.06.00.048 2020-10-09 13:06:59 +02:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL Bug 20582: Map app.psgi file and bin directory in Makefile.PL 2020-10-06 18:14:30 +02:00
MANIFEST.SKIP
package.json
README
README.md
README.robots
rewrite-config.PL
yarn.lock

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo