From: Mike Rylander Date: Thu, 11 Feb 2016 18:07:33 +0000 (-0500) Subject: Further cleanup of location checks; remove "no" option from at_circ and at_owning X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0e475f8c7039dd8108ba15a0e3e4ec16ba199ec5;p=working%2FEvergreen.git Further cleanup of location checks; remove "no" option from at_circ and at_owning Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm index 75fcbd87ab..6fa6d5b132 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -763,9 +763,9 @@ sub generate_system_copy_alerts { my $orgs = $U->get_org_descendants($copy_circ_lib); if ($U->is_true($a->invert_location)) { - next if (grep {$_ == $copy_circ_lib} @$orgs); + next if (grep {$_ == $self->circ_lib} @$orgs); } else { - next unless (grep {$_ == $copy_circ_lib} @$orgs); + next unless (grep {$_ == $self->circ_lib} @$orgs); } } @@ -776,9 +776,9 @@ sub generate_system_copy_alerts { my $orgs = $U->get_org_descendants($copy_owning_lib); if ($U->is_true($a->invert_location)) { - next if (grep {$_ == $copy_owning_lib} @$orgs); + next if (grep {$_ == $self->circ_lib} @$orgs); } else { - next unless (grep {$_ == $copy_owning_lib} @$orgs); + next unless (grep {$_ == $self->circ_lib} @$orgs); } } diff --git a/Open-ILS/src/templates/staff/admin/local/autoGridEditor/ccat.tt2 b/Open-ILS/src/templates/staff/admin/local/autoGridEditor/ccat.tt2 index a5e35a1191..4ee77de782 100644 --- a/Open-ILS/src/templates/staff/admin/local/autoGridEditor/ccat.tt2 +++ b/Open-ILS/src/templates/staff/admin/local/autoGridEditor/ccat.tt2 @@ -69,7 +69,6 @@
@@ -77,7 +76,6 @@