Ensure api/v3/utils.php required before civicrm_api3_create_error 5.68
authorChris Cant <chris@phdcc.com>
Thu, 9 Nov 2023 14:37:50 +0000 (14:37 +0000)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 9 Nov 2023 20:52:30 +0000 (09:52 +1300)
Civi/API/Kernel.php

index 9630e8c60bbeb060571819f81224fe76d5a76b36..97a9f35ca83c52728922d3f1b061699583c05622 100644 (file)
@@ -404,6 +404,7 @@ class Kernel {
       }
     }
 
+    require_once "api/v3/utils.php";
     $data = \civicrm_api3_create_error($msg, $data);
 
     if (isset($apiRequest['params']) && is_array($apiRequest['params']) && !empty($apiRequest['params']['api.has_parent'])) {