Commit 57a0487c authored by lobo's avatar lobo
Browse files

CRM-13355 - add support to set discounts on non-public events

parent b035e29e
......@@ -37,8 +37,12 @@
class CDM_Utils {
static function getEvents() {
// lets include all events instead of only public events
// quite a few folks want this!
require_once 'CRM/Event/BAO/Event.php';
$eventInfo = CRM_Event_BAO_Event::getCompleteInfo();
$eventInfo =
CRM_Event_BAO_Event::getCompleteInfo(NULL, NULL, NULL, NULL, FALSE);
if (! empty($eventInfo)) {
$events = array();
foreach ($eventInfo as $info) {
......
......@@ -4,7 +4,7 @@ https://github.com/dlobo/org.civicrm.module.cividiscount/zipball/v2.2
</downloadUrl>
<file>cividiscount</file>
<name>CiviDiscount Module Extension</name>
<description>This module requires PHP v5.3+ and Civi v4.3+</description>
<description>This module requires PHP v5.3+ and Civi v4.3.7+</description>
<urls>
<url desc="Main Extension Page">
http://civicrm.org/extension/cividiscount-extension
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment