Skip to content

Commit

Permalink
Merge pull request #634 from compucorp/CATL-1959-member-not-populated
Browse files Browse the repository at this point in the history
CATL-1959: Fix Bug In Fetching Webform Client ID
  • Loading branch information
tunbola authored Nov 9, 2020
2 parents 65969a6 + 71b8f0c commit 328ddde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Civicase/Helper/NewCaseWebform.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use CRM_Civicase_Service_CaseCategorySetting as CaseCategorySetting;

/**
* CRM_Civicase_Helper_NewCaseWebform class.
* Webform helper class.
*/
class CRM_Civicase_Helper_NewCaseWebform {

Expand Down Expand Up @@ -51,7 +51,7 @@ public static function getCaseWebformClientId($webform_id) {
$client = 0;

if (isset($data['case'][1]['case'][1]['client_id'])) {
$clients = $data['case'][1]['case'][1]['client_id'];
$clients = (array) $data['case'][1]['case'][1]['client_id'];
$client = reset($clients);
}

Expand Down

0 comments on commit 328ddde

Please sign in to comment.