Go to file
Colin Campbell 1f3fcc3abe Bug 6976 Close loophole allowing borrowers extra holds via opac
The check that the max number of reserves has
not been reached needs to take account of the fact
that we may have added enouch reserves to
reach the limit while this script is running.
Add a check against the incrementing count

The variable canreserve was only used when looping
through multiple holds but was not being
reinitialized on every iteration
make variable local to loop it is used in and
initialize to zero

Have used perltidy to correct the indention of
the while loop as it was misleading to the reader

Some numeric comparisons were using a string operator
fix them before strange bugs manifest themselves

The loophole manifests thus:
borrowers are only allowed Y holds.
If holds are done individually, it is
obeying that law i.e. X has held Y separate books –
 when I tried to do a 6th
book it told me that I could not place a hold.
However, if a borrower checks the catalogue,
gets the intial list up and clicks items on the “results”
box and then clicks “place hold” they can hold more than Y
items Please enter the commit message for your changes. Lines starting

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2012-09-16 20:00:27 +12:00
C4 Bug 8447: Make sure we have enough subfields for broader_headings 2012-09-16 08:18:58 +12:00
Koha Bug 8418: load repeating holidays hash correctly 2012-09-16 07:56:42 +12:00
acqui Bug 8439 - Printing basketgroup does not work on plack 2012-07-25 13:32:23 +12:00
admin Bug 8663 Fix the use of hardcoded date format for the calendar widget of hard due date 2012-08-30 10:23:37 +12:00
authorities Bug 8071: link between bib and authorities with the authid 2012-09-16 07:42:13 +12:00
basket Bug 6050 Make calls to GetItemsInfo consistent 2011-06-14 14:12:02 +12:00
catalogue Bug 8255: allow local cover images to be cached 2012-06-26 13:37:25 +12:00
cataloguing Bug 8524 follow-up: fix Javascript syntax error 2012-09-14 08:58:28 +12:00
circ Bug 8419 - Suspended holds appear on the daily holds queue 2012-08-10 19:20:10 +12:00
debian Bug 7409 : Missing dependency on libtest-mockmodule-perl 2012-09-16 19:48:43 +12:00
docs Bug 7143: Adding Kathryn Tyree to the history and About page. 2012-09-14 10:21:41 +12:00
errors Housekeeping in errors scripts 2010-05-12 07:29:03 -04:00
etc Bug 8704 - Typo in etc/koha-conf.xml 2012-09-06 17:11:50 +12:00
install_misc Bug 8478 - Update Ubuntu related files (3.8.x) 2012-09-06 11:34:32 +12:00
installer Bug 8012: default values for defaultSortField/defaultSortOrder NULL on install 2012-09-04 08:46:10 +12:00
koha-tmpl Bug 8071: link between bib and authorities with the authid 2012-09-16 07:42:13 +12:00
labels Bug 8375 - Patch for Common diacritics not shown correctly when exporting batch label to PDF 2012-07-17 17:33:41 +12:00
members Bug 8017 reduce manipulation of GetAllIssues return 2012-09-16 07:14:04 +12:00
misc Bug 7613: OCLC Connexion web service and desktop client, followup patch 2012-09-06 17:06:46 +12:00
offline_circ Bug 8006 - Loading offline circulation does not anonymize 2012-06-23 19:07:11 +12:00
opac Bug 6976 Close loophole allowing borrowers extra holds via opac 2012-09-16 20:00:27 +12:00
patroncards Bug 8315 - remove use C4::* version 2012-07-14 10:26:07 +12:00
reports Bug 2553 [Serials report] alphabetize dropdown menus 2012-09-05 22:13:59 +12:00
reserve Bug 8675 Add hours and mins to renewal due date 2012-09-05 22:10:52 +12:00
reviews Bug 1623 - Provide view of approved comments 2011-12-27 18:26:50 +01:00
rotating_collections Bug 6553 : Follow up adding license statements 2011-08-13 19:54:38 +12:00
selenium Adding selenium tests for filterMembers 2009-09-30 11:30:37 +02:00
serials Bug 3456: Show internalnotes when receiving serials 2012-09-14 10:42:28 +12:00
services Bug 7178: Acquisition item creation improvement 2012-03-26 11:07:23 +02:00
skel installer: fixed chown invocation; added skel for KOHA_LOG_DIR 2007-12-17 09:13:53 -06:00
sms Bug 2505 - Add commented use warnings where missing in the sms/ directory 2010-04-21 20:25:08 +12:00
suggestion Bug 8440: Dates do not appear in suggestions management 2012-07-25 15:30:19 +12:00
svc Bug 7613: OCLC Connexion web service and desktop client, followup patch 2012-09-06 17:06:46 +12:00
t Bug 8524 follow-up: fix broken test 2012-09-14 08:56:27 +12:00
tags Bug 8315 - remove use C4::* version 2012-07-14 10:26:07 +12:00
test Bug 5449: JSON malformed in Koha - Blocker with jQuery 1.4.x 2011-03-12 08:53:41 +13:00
tmp/modified_authorities changing DO_NOT_REMOVE to README.txt 2007-10-21 19:14:41 -05:00
tools Bug 8315 - remove use C4::* version 2012-07-14 10:26:07 +12:00
virtualshelves Bug 7788: [SIGNED-OFF] Followup: GetShelf call in addbybiblio script corrected 2012-05-23 16:20:42 +12:00
xt Bug 8470: remove depreciated H:T:P test 2012-07-27 08:50:40 +12:00
.htaccess Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
.mailmap 7439 Mailmap for master 2012-01-27 12:27:58 +01:00
INSTALL Bug 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +02:00
INSTALL.debian Bug 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +02:00
INSTALL.fedora7 Bug 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +02:00
INSTALL.opensuse Bug 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +02:00
INSTALL.ubuntu Bug 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +02:00
INSTALL.ubuntu.12.04 Bug 8478 - Update Ubuntu related files (3.8.x) 2012-09-06 11:34:32 +12:00
INSTALL.ubuntu.lucid Bug 7759, update of install files to use background indexing (and some whitespace tidy) 2012-04-20 16:11:52 +02:00
LICENSE Update LICENSE with a fresh copy from upstream. This updates the FSF address, and refers to the LGPL with its current name, and changes a few other minor things of the typographical sort. No semantic changes. 2010-03-16 20:17:48 -04:00
MANIFEST.SKIP Bug Fixing : 3334 2009-06-19 06:33:34 -05:00
Makefile.PL Bug 7818: update installer for biblio DOM indexing 2012-06-26 09:08:30 +12:00
README updated links in README 2010-05-24 08:14:16 -04:00
README.robots Bug 6411 add another example to README.robots 2011-07-05 14:48:05 +12:00
about.pl Bug 7143 Followup for timeline 2012-06-26 13:34:32 +12:00
changelanguage.pl Bug 6755 Problems with switching languages 2011-09-23 09:47:09 +12:00
edithelp.pl Bug 7038 Contextual help is always in English 2011-10-18 16:01:25 +13:00
fix-perl-path.PL installer: improvements to fix-path-perl.PL on Win32 2007-12-20 19:20:12 -06:00
help.pl Bug 6628 : Stopping a potential vulnerability 2011-11-28 10:05:58 +01:00
install-CPAN.pl Bug 5370: Fix all the references to koha.org 2010-11-08 09:41:49 +13:00
koha_perl_deps.pl Bug 6914 - fixes for the color option of koha_perl_deps.pl 2011-12-03 07:47:38 +01:00
kohaversion.pl Bumping database version 2012-08-30 09:40:47 +12:00
mainpage.pl Bug 6875 cleaning mainpage.pl 2012-02-15 14:58:31 +01:00
rewrite-config.PL Bug 7818: update installer for biblio DOM indexing 2012-06-26 09:08:30 +12:00

README

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 2 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/