Skip to content

Commit 4ec597c

Browse files
author
dlobo
committed
Merge pull request civicrm#12 from ravishnair/CRM-13374
fix for CRM-13374
2 parents 1509e1c + 556adb3 commit 4ec597c

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

site/civicrm.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ function civicrm_invoke() {
5656

5757
// add all the values from the itemId param
5858
// overrride the GET values if conflict
59-
if (CRM_Utils_Array::value('Itemid', $_GET)) {
59+
if (CRM_Utils_Array::value('Itemid', $_REQUEST)) {
6060
$component = JComponentHelper::getComponent('com_civicrm');
6161
$menu = JSite::getMenu();
62-
$params = $menu->getParams($_GET['Itemid']);
62+
$params = $menu->getParams($_REQUEST['Itemid']);
6363
$args = array('task', 'id', 'gid', 'pageId', 'action', 'csid', 'component');
64-
$view = CRM_Utils_Array::value('view', $_GET);
64+
$view = CRM_Utils_Array::value('view', $_REQUEST);
6565
if ($view) {
6666
$args[] = 'reset';
6767
}

site/elements/civievents.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ protected function getInput() {
5555
$params = array(
5656
'version' => '3',
5757
'is_active' => 1,
58-
'isCurrent' => 1,
5958
'return.title' => 1,
6059
'return.id' => 1,
6160
'return.end_date' => 1,
@@ -66,11 +65,7 @@ protected function getInput() {
6665
$options = array();
6766
$options[] = JHTML::_('select.option', '', JText::_('- Select Event -'));
6867
foreach ($events['values'] as $event) {
69-
if (strtotime($event['start_date']) >= strtotime($currentdate) ||
70-
strtotime($event['end_date']) >= strtotime($currentdate)
71-
) {
72-
$options[] = JHTML::_('select.option', $event['id'], $event['event_title']);
73-
}
68+
$options[] = JHTML::_('select.option', $event['id'], $event['event_title']);
7469
}
7570

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

0 commit comments

Comments
 (0)