Protect the validator against Extra Stuff
authorMike Rylander <mrylander@gmail.com>
Fri, 5 Jun 2020 17:17:28 +0000 (13:17 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 5 Jun 2020 17:17:28 +0000 (13:17 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Validator/Curbside.pm

index 081962f..3fab8ff 100644 (file)
@@ -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')
     );