From 8526193b3302b9a44764dd9bc48ca9e23b14c6bc Mon Sep 17 00:00:00 2001 From: Timotheus Pokorra Date: Thu, 1 Jun 2023 17:16:31 +0200 Subject: [PATCH] fix comments on function getNotePrivacyHidden the comments are the wrong way around. this is not about if notes should be displayed, but if they should be hidden. related to https://lab.civicrm.org/dev/core/-/issues/4329 --- CRM/Core/BAO/Note.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/BAO/Note.php b/CRM/Core/BAO/Note.php index 02be74e66a..6595969b94 100644 --- a/CRM/Core/BAO/Note.php +++ b/CRM/Core/BAO/Note.php @@ -43,13 +43,13 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note implements \Civi\Core\HookInte } /** - * Given a note id, decide if the note should be displayed based on privacy setting + * Given a note id, decide if the note should be hidden based on privacy setting * * @param object $note * Either the id of the note to retrieve, or the CRM_Core_DAO_Note object itself. * * @return bool - * TRUE if the note should be displayed, otherwise FALSE + * TRUE if the note should be hidden, otherwise FALSE * */ public static function getNotePrivacyHidden($note) { -- 2.25.1