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)
committerChris Cant <chris@phdcc.com>
Thu, 9 Nov 2023 14:37:50 +0000 (14:37 +0000)
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'])) {