From: Eileen McNaughton Date: Thu, 16 Feb 2023 05:36:11 +0000 (+1300) Subject: Deprecate unused CRM_Core_BAO_UFField::copy() function X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2d441efea998900a8782d066cfa1500cb9d44abb;p=civicrm-core.git Deprecate unused CRM_Core_BAO_UFField::copy() function --- 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();