Skip to content

Commit

Permalink
Api4 sql function "if": fix description dev/core#4307
Browse files Browse the repository at this point in the history
  • Loading branch information
highfalutin committed May 24, 2023
1 parent 9ccad58 commit d0985bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Civi/Api4/Query/SqlFunctionIF.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}

}

0 comments on commit d0985bf

Please sign in to comment.