Active
Project:
CiviCRM Event Block
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2009 at 21:09 UTC
Updated:
21 May 2012 at 11:18 UTC
I have 131 events to display. I have the block settings set to display 200 max events. Only 25 events are displaying. Any suggestions on how to fix this?
-backdrifting
Comments
Comment #1
JuliaKM commentedI'm not sure what is causing this problem. I'm no longer adding new features to the module as I no longer use CiviCRM regularly. However, if you'd like to submit a patch, please do so and I'd be happy to test it.
Comment #2
sadashiv commentedThe api used in the module is responsible for this as civicrm_event_search fetches 25 max results if not specified refer http://civiapi.idealworld.org/api/civicrm/api--v2--Event.php/function/ci...
Simply apply this change
@@ -52,7 +52,7 @@ function generate_civicrm_eventblock() {
module_load_include('php', 'civicrm', '../api/v2/Event');
module_load_include('php', 'civicrm', '../CRM/Core/OptionGroup');
- $params = array('is_public' => 1, 'is_active' => 1);
+ $params = array('is_public' => 1, 'is_active' => 1, return.max_results=1000); //1000 as max number of events
$my_events = civicrm_event_search($params);
$event_types = CRM_Core_OptionGroup::values('event_type');