]> git.koha-community.org Git - koha.git/commit
Bug 18076: Replace holds_to_place_count with an input type=text
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 8 Feb 2017 11:41:37 +0000 (12:41 +0100)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 14 Feb 2017 19:31:30 +0000 (20:31 +0100)
commitdfe8fd300d114e6b45fdc47d107fd56d791dd898
tree16a60c99de9ca80142eaac05971541f502a6b48a
parente0b64c0f4ae29eae1a7c71d3d9e328683aa51317
Bug 18076: Replace holds_to_place_count with an input type=text

From http://www.template-toolkit.org/docs/manual/Directives.html#section_WHILE

"""
The Template Toolkit uses a failsafe counter to prevent runaway WHILE loops which
 would otherwise never terminate. If the loop exceeds 1000 iterations then an undef
exception will be thrown, reporting the error:

WHILE loop terminated (> 1000 iterations)

The $Template::Directive::WHILE_MAX variable controls this behaviour and can be set
to a higher value if necessary.
"""

I do not think we want to increase this value, and I do not think we want to display a
dropdown list with 1000 entries.

This patch replaces the dropdown list with an input text.

Test plan:
- Set circulation conditions - holds per record = 999
- Search for record with items
- Go to the holds tab
- Search for a patron
- Verify that when you send your search, the 'internal server error' is not shown
and you see the input text.
You should be able to enter a value > than 999 and < 1

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit ac99f64010c6bdbe40abc2b823c2180b9b223425)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt