This bug modifies not just the order search form but also the patron
lists feature, making use of the new script for building a patron
autocomplete form. However, the test plan does not specify that the
patron lists form be tested as well, and it doesn't work.
This patch corrects a minor flaw which broke the patron search
autocomplete when adding patrons to a patron list.
To test, create a new patron list if necessary. Click the "add patrons"
button to add patrons to the list. In the patron search form type a
partial patron name. You should get an autocomplete dropdown of existing
patrons. Selecting one should work correctly.
Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'datatables.inc' %]
-<script type="text/javascript" src="[% interface %]/js/autocomplete/patrons.pl"></script>
+<script type="text/javascript" src="[% interface %]/js/autocomplete/patrons.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
patron_autocomplete({
patron_container: $("#patrons_to_add"),
input_autocomplete: $("#find_patron"),
- patron_input_name = 'patrons_to_add'
+ patron_input_name: 'patrons_to_add'
});
var checkBoxes = $("input[type='checkbox']","#patron-list-table");