Skip to content

Commit

Permalink
-- CRM-13374 fix
Browse files Browse the repository at this point in the history
----------------------------------------
* CRM-13374: Select Event invalidation
  http://issues.civicrm.org/jira/browse/CRM-13374
  • Loading branch information
Ravish Nair committed Sep 20, 2013
1 parent 1509e1c commit 92f9a90
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions site/elements/civievents.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ protected function getInput() {
$params = array(
'version' => '3',
'is_active' => 1,
'isCurrent' => 1,
'return.title' => 1,
'return.id' => 1,
'return.end_date' => 1,
Expand All @@ -66,11 +65,7 @@ protected function getInput() {
$options = array();
$options[] = JHTML::_('select.option', '', JText::_('- Select Event -'));
foreach ($events['values'] as $event) {
if (strtotime($event['start_date']) >= strtotime($currentdate) ||
strtotime($event['end_date']) >= strtotime($currentdate)
) {
$options[] = JHTML::_('select.option', $event['id'], $event['event_title']);
}
$options[] = JHTML::_('select.option', $event['id'], $event['event_title']);
}

return JHTML::_('select.genericlist', $options, $name, NULL, 'value', 'text', $value);
Expand Down

0 comments on commit 92f9a90

Please sign in to comment.