Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nbrcustomtokens
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
Model registry
Operate
Environments
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
nbrcustomtokens
Merge requests
!5
contact id tokens added
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
contact id tokens added
6445_stage_2_tokens
into
master
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
jab1012
requested to merge
6445_stage_2_tokens
into
master
4 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
04f48e9a
1 commit,
4 years ago
2 files
+
17
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
CRM/Nbrcustomtokens/NbrTokenValues.php
+
11
−
0
Options
@@ -67,6 +67,17 @@ class CRM_Nbrcustomtokens_NbrTokenValues {
}
if
(
isset
(
$tokens
[
'NBR_Contact'
]))
{
$params
=
[
1
=>
[
$cid
,
'Integer'
]];
$query
=
"select nva_participant_id, nva_bioresource_id from civicrm_value_nihr_volunteer_ids where entity_id = %1"
;
$dao
=
CRM_Core_DAO
::
executeQuery
(
$query
,
$params
);
if
(
$dao
->
fetch
())
{
$values
[
$cid
][
'NBR_Contact.participant_id'
]
=
$dao
->
nva_participant_id
;
$values
[
$cid
][
'NBR_Contact.bioresource_id'
]
=
$dao
->
nva_bioresource_id
;
}
}
}
}
Loading