Skip to content

Commit

Permalink
COMCL-962: Avoid passing null store
Browse files Browse the repository at this point in the history
  • Loading branch information
olayiwola-compucorp committed Dec 2, 2024
1 parent dda6b99 commit c893261
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/NcnCiviZoom/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public static function addZoomListToEventForm(&$form) {
$eventId = $form->_id;
} elseif (!empty($form->_entityId)) {
$eventId = $form->_entityId;
} elseif (!empty(CRM_Utils_Request::retrieve('entityID', 'Positive')) && CRM_Utils_Request::retrieve('type', 'String', NULL, TRUE) == "Event") {
} elseif (!empty(CRM_Utils_Request::retrieve('entityID', 'Positive')) && CRM_Utils_Request::retrieve('type', 'String') == "Event") {
$eventId = CRM_Utils_Request::retrieve('entityID', 'Positive');
}
$no_of_unmatched = 0;
Expand Down
2 changes: 1 addition & 1 deletion ncn_civi_zoom.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function ncn_civi_zoom_civicrm_buildForm($formName, &$form) {

//Add the zoom account list to the form once the custom datatype is loaded
if($formName == 'CRM_Custom_Form_CustomDataByType'){
if(CRM_Utils_Request::retrieve('type', 'String', NULL, TRUE) == 'Event') {
if(CRM_Utils_Request::retrieve('type', 'String') == 'Event') {
$customAccountId = CRM_NcnCiviZoom_Utils::getAccountIdCustomField();
if(!empty($customAccountId)){
CRM_NcnCiviZoom_Utils::addZoomListToEventForm($form);
Expand Down

0 comments on commit c893261

Please sign in to comment.