Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nbrgeneralobservation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Partners
CiviCooP
NIHR BioResource
nbrgeneralobservation
Commits
51c369d7
Commit
51c369d7
authored
1 year ago
by
aly2191
Browse files
Options
Downloads
Patches
Plain Diff
remove useless logging
parent
4e812860
No related branches found
Branches containing commit
Tags
1.4
Tags containing commit
1 merge request
!2
remove useless logging and add Changelog
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nbrgeneralobservation.php
+0
-5
0 additions, 5 deletions
nbrgeneralobservation.php
with
0 additions
and
5 deletions
nbrgeneralobservation.php
+
0
−
5
View file @
51c369d7
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment