Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
justinfreeman (Agileware)
Core
Commits
fc0bfba4
Commit
fc0bfba4
authored
11 years ago
by
deepak-srivastava
Browse files
Options
Downloads
Plain Diff
Merge pull request #1187 from deepak-srivastava/search
CRM-12912, exposing hook injected fields in profiles
parents
4e226832
61750d67
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Core/BAO/UFField.php
+3
-0
3 additions, 0 deletions
CRM/Core/BAO/UFField.php
CRM/UF/Form/Field.php
+2
-0
2 additions, 0 deletions
CRM/UF/Form/Field.php
with
5 additions
and
0 deletions
CRM/Core/BAO/UFField.php
+
3
−
0
View file @
fc0bfba4
...
...
@@ -824,6 +824,9 @@ SELECT id
'Organization'
=>
CRM_Contact_BAO_Contact
::
importableFields
(
'Organization'
,
FALSE
,
FALSE
,
TRUE
,
TRUE
,
TRUE
),
);
// include hook injected fields
$fields
[
'Contact'
]
=
array_merge
(
$fields
[
'Contact'
],
CRM_Contact_BAO_Query_Hook
::
singleton
()
->
getFields
());
// add current employer for individuals
$fields
[
'Individual'
][
'current_employer'
]
=
array
(
'name'
=>
'organization_name'
,
...
...
This diff is collapsed.
Click to expand it.
CRM/UF/Form/Field.php
+
2
−
0
View file @
fc0bfba4
...
...
@@ -149,6 +149,8 @@ class CRM_UF_Form_Field extends CRM_Core_Form {
$this
->
_fields
=
array_merge
(
CRM_Event_BAO_Query
::
getParticipantFields
(),
$this
->
_fields
);
}
$this
->
_fields
=
array_merge
(
$this
->
_fields
,
CRM_Contact_BAO_Query_Hook
::
singleton
()
->
getFields
());
$this
->
_selectFields
=
array
();
foreach
(
$this
->
_fields
as
$name
=>
$field
)
{
// lets skip note for now since we dont support it
...
...
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