From d0985bf9ee9a57e625bd2253465d7b9f4b5c8585 Mon Sep 17 00:00:00 2001 From: Noah Miller Date: Wed, 24 May 2023 09:34:22 -0700 Subject: [PATCH] Api4 sql function "if": fix description dev/core#4307 --- Civi/Api4/Query/SqlFunctionIF.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Civi/Api4/Query/SqlFunctionIF.php b/Civi/Api4/Query/SqlFunctionIF.php index 810cfe2d70f0..351884c97dc8 100644 --- a/Civi/Api4/Query/SqlFunctionIF.php +++ b/Civi/Api4/Query/SqlFunctionIF.php @@ -51,7 +51,9 @@ public static function getTitle(): string { * @return string */ public static function getDescription(): string { - return ts('If the field is empty, the first value, otherwise the second.'); + return ts('If the field is boolean TRUE, or any number except 0, or a ' + . 'string not starting with the digits 1-9, the first value, otherwise ' + . 'the second.'); } }