*
* @var array
*/
- static $_actionLinks = NULL;
+ public static $_actionLinks = NULL;
/**
* The event links to display for the browse screen.
* @var array
*/
- static $_eventLinks = NULL;
+ public static $_eventLinks = NULL;
- static $_links = NULL;
+ public static $_links = NULL;
- static $_tabLinks = NULL;
+ public static $_tabLinks = NULL;
protected $_pager = NULL;
'field' => 'is_online_registration',
];
- if (CRM_Core_Permission::check('administer CiviCRM') || CRM_Event_BAO_Event::checkPermission(NULL, CRM_Core_Permission::EDIT)) {
+ // @fixme I don't understand the event permissions check here - can we just get rid of it?
+ $permissions = CRM_Event_BAO_Event::getAllPermissions();
+ if (CRM_Core_Permission::check('administer CiviCRM') || !empty($permissions[CRM_Core_Permission::EDIT])) {
self::$_tabLinks[$cacheKey]['reminder']
= [
'title' => ts('Schedule Reminders'),
$this->_searchResult = CRM_Utils_Request::retrieve('searchResult', 'Boolean', $this);
$whereClause = $this->whereClause($params, FALSE, $this->_force);
- $this->pagerAToZ($whereClause, $params);
+
+ if (CRM_Core_Config::singleton()->includeAlphabeticalPager) {
+ $this->pagerAToZ($whereClause, $params);
+ }
$params = [];
$whereClause = $this->whereClause($params, TRUE, $this->_force);
if (is_array($value)) {
$type = implode(',', $value);
}
- $clauses[] = "event_type_id IN ({$type})";
+ $clauses[] = "event_type_id IN (%2)";
+ $params[2] = [$type, 'String'];
}
$eventsByDates = $this->get('eventsByDates');