From 1eb572793903a71a4ddbdb16a62876b9504d2263 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Fri, 5 Jun 2020 13:17:28 -0400 Subject: [PATCH] Protect the validator against Extra Stuff Signed-off-by: Mike Rylander --- .../src/perlmods/lib/OpenILS/Application/Trigger/Validator/Curbside.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Validator/Curbside.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Validator/Curbside.pm index 081962f0c4..3fab8ffa50 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Validator/Curbside.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Validator/Curbside.pm @@ -20,6 +20,7 @@ sub handler { return 0 unless (defined $org); + $org = $org->id if ref($org); # somehow we got a fleshed org object on the target return $U->is_true( $U->ou_ancestor_setting_value($org, 'circ.curbside') ); -- 2.11.0