continue;
}
+ //special handling for groups/tags
+ $makeException = FALSE;
+ if (in_array($name, array('groups', 'tags'))
+ && isset($this->_returnProperties[substr($name, 0, -1)])
+ ) {
+ $makeException = TRUE;
+ }
+
$cfID = CRM_Core_BAO_CustomField::getKeyID($name);
if (
CRM_Utils_Array::value($name, $this->_paramLookup) ||
- CRM_Utils_Array::value($name, $this->_returnProperties)
+ CRM_Utils_Array::value($name, $this->_returnProperties) ||
+ $makeException
) {
if ($cfID) {
// add to cfIDs array if not present
$properties = array();
foreach ($returnProperties as $name => $value) {
if ($name != 'location') {
+ if (in_array($name, array('group', 'tag'))) {
+ $name = "{$name}s";
+ }
$properties[] = $name;
}
else {