dev/core#2814 TokenCompatSubscriber - evaluate contact tokens during civi.token.eval phase
$row->tokens($entity, $field, $actionSearchResult->$field);
}
elseif ($cfID = \CRM_Core_BAO_CustomField::getKeyID($field)) {
- $row->customToken($entity, $cfID, $actionSearchResult->entity_id);
+ $row->customToken($entity, $cfID, $actionSearchResult->event_id);
}
else {
$row->tokens($entity, $field, '');
// set qfkey so that pager picks it up and use it in the "Next > Last >>" links.
// FIXME: Note setting it in $_GET doesn't work, since pager generates link based on QUERY_STRING
+ if (!isset($_SERVER['QUERY_STRING'])) {
+ // in php 7.4 can do this with less lines with ??=
+ $_SERVER['QUERY_STRING'] = '';
+ }
$_SERVER['QUERY_STRING'] .= "&qfKey={$this->controller->_key}";
}