From: Mike Rylander Date: Fri, 5 Jun 2020 17:17:28 +0000 (-0400) Subject: Protect the validator against Extra Stuff X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1eb572793903a71a4ddbdb16a62876b9504d2263;p=working%2FEvergreen.git Protect the validator against Extra Stuff Signed-off-by: Mike Rylander --- 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') );