From 2d441efea998900a8782d066cfa1500cb9d44abb Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 16 Feb 2023 18:36:11 +1300 Subject: [PATCH] Deprecate unused CRM_Core_BAO_UFField::copy() function --- CRM/Core/BAO/UFField.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Core/BAO/UFField.php b/CRM/Core/BAO/UFField.php index e43bc4a25e..ae8a9dd907 100644 --- a/CRM/Core/BAO/UFField.php +++ b/CRM/Core/BAO/UFField.php @@ -285,12 +285,15 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1"; * Copy existing profile fields to * new profile from the already built profile * + * @deprecated + * * @param int $old_id * From which we need to copy. * @param bool $new_id * In which to copy. */ public static function copy($old_id, $new_id) { + CRM_Core_Error::deprecatedFunctionWarning(''); $ufField = new CRM_Core_DAO_UFField(); $ufField->uf_group_id = $old_id; $ufField->find(); -- 2.25.1