LP#1815815: Do not use depth when filtering copies for a library group
authorMike Rylander <mrylander@gmail.com>
Wed, 10 Mar 2021 23:57:19 +0000 (18:57 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 11 Mar 2021 18:44:38 +0000 (13:44 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>

Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm

index 36f64ec..9deb0bf 100644 (file)
@@ -331,7 +331,7 @@ sub mk_copy_query {
                             column => 'id', 
                             transform => 'actor.org_unit_descendants',
                             result_field => 'id', 
-                            params => [$depth]
+                            ( $lasso_orgs ? () : (params => [$depth]) )
                         }]},
                         from => 'aou',
                         where => {id => $filter_orgs}