Skip to content
Snippets Groups Projects
Commit 51c369d7 authored by aly2191's avatar aly2191
Browse files

remove useless logging

parent 4e812860
No related branches found
No related tags found
1 merge request!2remove useless logging and add Changelog
...@@ -85,15 +85,10 @@ function nbrgeneralobservation_civicrm_tabset($tabsetName, &$tabs, $context) { ...@@ -85,15 +85,10 @@ function nbrgeneralobservation_civicrm_tabset($tabsetName, &$tabs, $context) {
if ($tabsetName == "civicrm/contact/view" && isset($context['contact_id'])) { if ($tabsetName == "civicrm/contact/view" && isset($context['contact_id'])) {
$contactId = $context['contact_id']; $contactId = $context['contact_id'];
Civi::log()->info("Contact id is ".$contactId);
$contactSubtype = CRM_Contact_BAO_Contact::getContactSubType(($contactId))[0]; $contactSubtype = CRM_Contact_BAO_Contact::getContactSubType(($contactId))[0];
Civi::log()->info("Contact subtype is ".$contactSubtype);
// Doing strpos, as values in contact_sub_type seem to have unusual fields surrounding it, and felt cleaner than copying nihr_volunteer // Doing strpos, as values in contact_sub_type seem to have unusual fields surrounding it, and felt cleaner than copying nihr_volunteer
$containsSubtype= strpos($contactSubtype,"nihr_volunteer"); $containsSubtype= strpos($contactSubtype,"nihr_volunteer");
Civi::log()->info("Contains subtype is ".$containsSubtype);
if ($containsSubtype!==false) { if ($containsSubtype!==false) {
$url = CRM_Utils_System::url("civicrm/nbrgeneralobservation/page/nbrgenobservations", "reset=1&cid=" . $contactId, TRUE); $url = CRM_Utils_System::url("civicrm/nbrgeneralobservation/page/nbrgenobservations", "reset=1&cid=" . $contactId, TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment