Skip to content

Instantly share code, notes, and snippets.

@mollux
Created May 11, 2016 19:21
Show Gist options
  • Save mollux/21010aa86e9ac93f468d43cd47ef1aff to your computer and use it in GitHub Desktop.
Save mollux/21010aa86e9ac93f468d43cd47ef1aff to your computer and use it in GitHub Desktop.
diff --git a/CRM/Contact/Selector.php b/CRM/Contact/Selector.php
index 295c569..4fa9637 100644
--- a/CRM/Contact/Selector.php
+++ b/CRM/Contact/Selector.php
@@ -427,14 +427,14 @@ class CRM_Contact_Selector extends CRM_Core_Selector_Base implements CRM_Core_Se
'email',
))) {
if ($type) {
- $name = "`$locationTypeName-$fieldName-$type`";
+ $name = "$locationTypeName-$fieldName-$type";
}
else {
- $name = "`$locationTypeName-$fieldName`";
+ $name = "$locationTypeName-$fieldName";
}
}
else {
- $name = "`$locationTypeName-$fieldName`";
+ $name = "$locationTypeName-$fieldName";
}
}
//to handle sort key for Internal contactId.CRM-2289
diff --git a/CRM/Profile/Selector/Listings.php b/CRM/Profile/Selector/Listings.php
index 9c3611b..c5bea6f 100644
--- a/CRM/Profile/Selector/Listings.php
+++ b/CRM/Profile/Selector/Listings.php
@@ -342,14 +342,14 @@ class CRM_Profile_Selector_Listings extends CRM_Core_Selector_Base implements CR
'email',
))) {
if ($type) {
- $name = "`$locationTypeName-$fieldName-$type`";
+ $name = "$locationTypeName-$fieldName-$type";
}
else {
- $name = "`$locationTypeName-$fieldName`";
+ $name = "$locationTypeName-$fieldName";
}
}
else {
- $name = "`$locationTypeName-$fieldName`";
+ $name = "$locationTypeName-$fieldName";
}
}
else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment