From 781d9fb069b20abc95ce03f4e4bfb3d0b327cb32 Mon Sep 17 00:00:00 2001 From: olayiwola-compucorp Date: Mon, 15 Apr 2024 16:56:14 +0100 Subject: [PATCH] FOSFA-283: Correct webform check --- CRM/Civicase/Hook/Tokens/AddCaseCustomFieldsTokenValues.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Civicase/Hook/Tokens/AddCaseCustomFieldsTokenValues.php b/CRM/Civicase/Hook/Tokens/AddCaseCustomFieldsTokenValues.php index 405e9dbd0..57c2c563e 100644 --- a/CRM/Civicase/Hook/Tokens/AddCaseCustomFieldsTokenValues.php +++ b/CRM/Civicase/Hook/Tokens/AddCaseCustomFieldsTokenValues.php @@ -68,7 +68,7 @@ public static function evaluateCaseCustomFieldsTokens(TokenValueEvent $e) { * Detects the token activity is triggered by webform. */ private static function isWebform() { - return isset($_POST['form_id']) && stripos($_POST['form_id'], 'webform_client_form_'); + return isset($_POST['form_id']) && stripos($_POST['form_id'], 'webform_client_form_') !== FALSE; } }