When staff did have to override in order to place the hold, and the
"Place another hold for this title" link was subsequnetly used, the
inputs for the patron barcodes and some other fields on the place
holds page were duplicated. To avoid this, we now use uniq from the
List::MoreUtils library when retrieving the hold targets list from the
CGI parameters.
Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
use DateTime;
use DateTime::Format::ISO8601;
my $U = 'OpenILS::Application::AppUtils';
+use List::MoreUtils qw/uniq/;
sub prepare_extended_user_info {
my $self = shift;
my $cgi = $self->cgi;
$self->ctx->{page} = 'place_hold';
- my @targets = $cgi->param('hold_target');
+ my @targets = uniq $cgi->param('hold_target');
my @parts = $cgi->param('part');
$ctx->{hold_type} = $cgi->param('hold_type');