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
Package registry
Container registry
Model registry
Operate
Terraform modules
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
Usha Matisson
Core
Commits
a765d024
Commit
a765d024
authored
11 years ago
by
Dave Greenberg
Browse files
Options
Downloads
Plain Diff
Merge pull request #2236 from eileenmcnaughton/CRM-14008
CRM-14008 alter update greeting to update blanks as well as null
parents
e9892356
a39ef8af
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Contact/BAO/Contact/Utils.php
+6
-2
6 additions, 2 deletions
CRM/Contact/BAO/Contact/Utils.php
with
6 additions
and
2 deletions
CRM/Contact/BAO/Contact/Utils.php
+
6
−
2
View file @
a765d024
...
...
@@ -989,8 +989,12 @@ Group By componentId";
$sql
=
"SELECT DISTINCT id,
$idFldName
FROM civicrm_contact WHERE contact_type = %1 "
;
}
else
{
$sql
=
"SELECT DISTINCT id,
$idFldName
FROM civicrm_contact WHERE contact_type = %1
AND (
{
$idFldName
}
IS NULL OR (
{
$idFldName
}
IS NOT NULL AND
{
$displayFldName
}
IS NULL ) ) "
;
$sql
=
"
SELECT DISTINCT id,
$idFldName
FROM civicrm_contact
WHERE contact_type = %1
AND (
{
$idFldName
}
IS NULL
OR (
{
$idFldName
}
IS NOT NULL AND (
{
$displayFldName
}
IS NULL OR
{
$displayFldName
}
= '')) )"
;
}
$dao
=
CRM_Core_DAO
::
executeQuery
(
$sql
,
array
(
1
=>
array
(
$contactType
,
'String'
)));
...
...
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