Bug 37444: Fix filter for Pickup Location

When trying to filter holds to pull using the dropdown filter for Pickup Location, the dropdown has "None" as the only available option because of incorrect column index in ppendingreserves.tt

To reproduce:
1. Place a hold and go to Circulation -> Holds to pull.
2. Use a dropdown filter for Pickup Location, see that only "None" is available to pick, meaning you can't use the filter.
3. Apply the patch.
4. Do the step 2 again and ensure that there's also an option for that hold's pickup location.

Signed-off-by: Eric Garcia <cubingguy714@gmail.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 1bc9d18dd6)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Petro Vashchuk 2024-07-24 07:30:43 +03:00 committed by Lucas Gass
parent 874488c906
commit 01e325f0f9
1 changed files with 2 additions and 2 deletions

View File

@ -379,9 +379,9 @@
});
});
$("#pickup-location").each( function () {
$(this).html( createSelect( holdst.fnGetColumnData(14) ) );
$(this).html( createSelect( holdst.fnGetColumnData(15) ) );
$('select', this).change( function () {
holdst.fnFilter( $(this).val(), 14 );
holdst.fnFilter( $(this).val(), 15 );
});
});
});