Skip to content

Commit

Permalink
FOSFA-283: Correct webform check
Browse files Browse the repository at this point in the history
  • Loading branch information
olayiwola-compucorp committed May 13, 2024
1 parent 23aecdb commit 0a2a72a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
3 changes: 2 additions & 1 deletion CRM/Civicase/Hook/Tokens/AddCaseTokenCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class CRM_Civicase_Hook_Tokens_AddCaseTokenCategory {
* Service for fetching contact custom fields.
*/
public function __construct(
private CRM_Civicase_Service_CaseCustomFieldsProvider $caseCustomFieldsService) {
private CRM_Civicase_Service_CaseCustomFieldsProvider $caseCustomFieldsService,
) {
$this->caseCustomFieldsService = $caseCustomFieldsService;
}

Expand Down

0 comments on commit 0a2a72a

Please sign in to comment.